private static final class CommandLineArgs.Prefix extends Object implements Comparable<CommandLineArgs.Prefix>
Modifier and Type | Field and Description |
---|---|
int |
count
Number of arguments of this type seen
|
CommandLineArgs.PrefixType |
type
A number that describes the type of the argument
|
String |
value
The command line string e.g.
|
Constructor and Description |
---|
Prefix(String v,
CommandLineArgs.PrefixType t)
Construct a prefix with the given argument string and type
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CommandLineArgs.Prefix o)
Sorting method for Comparable.
|
boolean |
equals(Object o)
Equals method to be consistent with Comparable
|
int |
hashCode()
Hashcode to be consistent with Comparable
|
String |
toString()
Command line string representation of the prefix
|
public final CommandLineArgs.PrefixType type
public int count
Prefix(String v, CommandLineArgs.PrefixType t)
v
- argument stringt
- type of prefix, must be non-nullpublic int compareTo(CommandLineArgs.Prefix o)
compareTo
in interface Comparable<CommandLineArgs.Prefix>
public int hashCode()