public class Args
extends java.lang.Object
String
arguments.Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
args
The string arguments.
|
private int |
index
The current index into
args . |
Constructor and Description |
---|
Args(java.lang.String[] args)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get()
Returns the next argument.
|
java.lang.String |
getPrev()
Returns the current argument.
|
boolean |
hasMore()
Returns whether more arguments exist.
|
@NotNull private final java.lang.String[] args
private int index
args
.public Args(@NotNull java.lang.String[] args)
args
- the string arguments@NotNull public java.lang.String get() throws java.io.IOException
java.io.IOException
- if no next argument exists@NotNull public java.lang.String getPrev()
get()
.public boolean hasMore()