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