Skip to content

Package io.github.qishr.cascara.common.util

Class Builder

java.lang.Object
        io.github.qishr.cascara.common.util.CommandLine.Model.ArgSpec.Builder<io.github.qishr.cascara.common.util.CommandLine.Model.PositionalParamSpec.Builder>
                io.github.qishr.cascara.common.util.CommandLine.Model.PositionalParamSpec.Builder

Enclosing Class:
    io.github.qishr.cascara.common.util.CommandLine.Model.PositionalParamSpec


public static class Builder
extends Builder<Builder>

Builder responsible for creating valid PositionalParamSpec objects.

Method Summary

Modifier and Type Method Description
public PositionalParamSpec build() Returns a valid PositionalParamSpec instance.
protected Builder self() Returns this builder.
public Range index() Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.
public Builder index(String range) Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.
public Builder index(Range index) Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.

Method Details

build

public PositionalParamSpec build()

Returns a valid PositionalParamSpec instance.


self

protected Builder self()

Returns this builder.


index

public Range index()

Returns an index or range specifying which of the command line arguments should be assigned to this positional parameter.

See Also:

index


index

public Builder index(String range)

Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.


index

public Builder index(Range index)

Sets the index or range specifying which of the command line arguments should be assigned to this positional parameter, and returns this builder.