public class MArgs extends Object
| Constructor and Description |
|---|
MArgs(String[] args)
Use the argument array to parse arguments.
|
MArgs(String[] args,
String[] pUsage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String name)
Returns true if the argument list contains the key.
|
protected List<String> |
getArgValues(String name)
Returns a List of the arguments for the given key.
|
Set<String> |
getKeys()
Return a iterable set of existing keys.
|
int |
getSize(String name)
Returns the amount of attributes for this key.
|
String |
getValue(String name,
int index)
Returns the "index" parameter for this key.
|
String |
getValue(String name,
String def,
int index)
Returns the "index" parameter for this key.
|
String[] |
getValues(String name)
Return all values for this parameter as a array.
|
String |
toString() |
public static final String DEFAULT
public MArgs(String[] args)
args - public boolean contains(String name)
name - protected List<String> getArgValues(String name)
name - public int getSize(String name)
name - public String getValue(String name, String def, int index)
name - def - index - public String getValue(String name, int index)
name - index - public String[] getValues(String name)
name - Copyright © 2014. All rights reserved.