Class SymbolRange

java.lang.Object
com.github.curiousoddman.rgxgen.model.SymbolRange

public class SymbolRange extends Object
Range of symbols
  • Method Details

    • range

      public static SymbolRange range(int from, int to)
      Create inclusive range of symbols.
      Parameters:
      from - min character; shall be less than to
      to - max character; shall be greater than from
      API Note:
      No verifications are done!
    • range

      public static SymbolRange range(char from, char to)
      Create inclusive range of symbols.
      Parameters:
      from - min character; shall be less than to
      to - max character; shall be greater than from
      API Note:
      No verifications are done!
    • getFrom

      public int getFrom()
    • getTo

      public int getTo()
    • size

      public int size()
    • chars

      public CharList chars()
    • contains

      public boolean contains(int c)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object