Class SequenceEncoder.Decoder

java.lang.Object
VASSAL.tools.SequenceEncoder.Decoder
All Implemented Interfaces:
Iterator<String>
Enclosing class:
SequenceEncoder

public static class SequenceEncoder.Decoder extends Object implements Iterator<String>
  • Constructor Details

  • Method Details

    • hasMoreTokens

      public boolean hasMoreTokens()
    • getRemaining

      public String getRemaining()
    • nextToken

      public String nextToken()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<String>
    • next

      public String next()
      Specified by:
      next in interface Iterator<String>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<String>
    • copy

      public SequenceEncoder.Decoder copy()
    • nextInt

      public int nextInt(int defaultValue)
      Parse the next token into an integer
      Parameters:
      defaultValue - Return this value if no more tokens, or next token doesn't parse to an integer
      Returns:
      next token as an integer, or defaultValue if it didn't exist or didn't parse
    • nextLong

      public long nextLong(long defaultValue)
    • nextDouble

      public double nextDouble(double defaultValue)
    • nextBoolean

      public boolean nextBoolean(boolean defaultValue)
    • nextChar

      public char nextChar(char defaultValue)
      Return the first character of the next token
      Parameters:
      defaultValue - Return this value if no more tokens, or if next token has zero length
      Returns:
      next token if a character is available, or defaultValue if no more tokens or the token has zero length
    • nextKeyStroke

      public KeyStroke nextKeyStroke(char defaultValue)
    • nextColor

      public Color nextColor(Color defaultValue)
    • nextKeyStroke

      public KeyStroke nextKeyStroke(KeyStroke defaultValue)
    • nextNamedKeyStroke

      public NamedKeyStroke nextNamedKeyStroke(char defaultValue)
    • nextNamedKeyStroke

      public NamedKeyStroke nextNamedKeyStroke()
    • nextNamedKeyStroke

      public NamedKeyStroke nextNamedKeyStroke(NamedKeyStroke defaultValue)
    • nextToken

      public String nextToken(String defaultValue)
      Return the next token, or the default value if there are no more tokens
      Parameters:
      defaultValue - default value in case there are no more tokens
      Returns:
      next token, or the default value if no more tokens
    • nextStringArray

      public String[] nextStringArray(int minLength)