Class Args
- java.lang.Object
-
- com.realtime.crossfire.jxclient.skin.io.Args
-
public class Args extends java.lang.ObjectIterates over a list ofStringarguments.
-
-
Constructor Summary
Constructors Constructor Description Args(@NotNull java.lang.String @NotNull [] args)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.Stringget()Returns the next argument.@NotNull java.lang.StringgetPrev()Returns the current argument.booleanhasMore()Returns whether more arguments exist.
-
-
-
Method Detail
-
get
@NotNull public @NotNull java.lang.String get() throws java.io.IOExceptionReturns the next argument.- Returns:
- the next argument
- Throws:
java.io.IOException- if no next argument exists
-
getPrev
@NotNull public @NotNull java.lang.String getPrev()
Returns the current argument. This is the same value that was returned by the preceding call toget().- Returns:
- the current argument
-
hasMore
public boolean hasMore()
Returns whether more arguments exist.- Returns:
- whether more arguments exist
-
-