java.lang.Object com.realtime.crossfire.jxclient.skin.io.Args
public class Args
Iterates over a list of String
arguments.
Field Summary | |
---|---|
private java.lang.String[] |
args
The string arguments. |
private int |
index
The current index into args . |
Constructor Summary | |
---|---|
Args(java.lang.String[] args)
Creates a new instance. |
Method Summary | |
---|---|
java.lang.String |
get()
Returns the next argument. |
java.lang.String |
getPrev()
Returns the current argument. |
boolean |
hasMore()
Returns whether more arguments exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final java.lang.String[] args
private int index
args
.
Constructor Detail |
---|
public Args(@NotNull java.lang.String[] args)
args
- the string argumentsMethod Detail |
---|
@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()