- java.lang.Object
-
- swim.args.Opt
-
-
Constructor Summary
Constructors Constructor Description Opt(String name, char flag, String desc, FingerTrieSeq<Arg> args, int defs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Opt
arg(String arg)
Opt
arg(Arg arg)
FingerTrieSeq<Arg>
args()
boolean
canEqual(Object other)
Opt
clone()
static Opt
create(String name)
static Opt
create(String name, char flag)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.int
defs()
String
desc()
Opt
desc(String desc)
boolean
equals(Object other)
char
flag()
Opt
flag(char flag)
Arg
getArg()
Arg
getArg(int index)
String
getValue()
String
getValue(int index)
int
hashCode()
boolean
isDefined()
String
name()
int
parse(String[] params, int paramIndex)
String
toString()
-
-
-
Constructor Detail
-
Opt
public Opt(String name, char flag, String desc, FingerTrieSeq<Arg> args, int defs)
-
-
Method Detail
-
name
public String name()
-
flag
public char flag()
-
flag
public Opt flag(char flag)
-
desc
public String desc()
-
args
public FingerTrieSeq<Arg> args()
-
defs
public int defs()
-
isDefined
public boolean isDefined()
-
getArg
public Arg getArg()
-
getArg
public Arg getArg(int index)
-
getValue
public String getValue()
-
getValue
public String getValue(int index)
-
parse
public int parse(String[] params, int paramIndex)
-
canEqual
public boolean canEqual(Object other)
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-