java.lang.Object
com.realtime.crossfire.jxclient.skin.io.Args

public class Args extends Object
Iterates over a list of String arguments.
  • Constructor Details

    • Args

      public Args(@NotNull @NotNull String @NotNull [] args)
      Creates a new instance.
      Parameters:
      args - the string arguments
  • Method Details

    • get

      @NotNull public @NotNull String get() throws IOException
      Returns the next argument.
      Returns:
      the next argument
      Throws:
      IOException - if no next argument exists
    • getPrev

      @NotNull public @NotNull String getPrev()
      Returns the current argument. This is the same value that was returned by the preceding call to get().
      Returns:
      the current argument
    • hasMore

      public boolean hasMore()
      Returns whether more arguments exist.
      Returns:
      whether more arguments exist