java.lang.Object
com.github.curiousoddman.rgxgen.util.chars.CharList
Direct Known Subclasses:
CharArrayList, EmptyUnmodifiableCharList

public abstract class CharList extends Object
  • Constructor Details

    • CharList

      public CharList()
  • Method Details

    • rangeClosed

      public static CharList rangeClosed(int from, int to)
    • charList

      public static CharList charList(List<SymbolRange> symbolRanges, char... symbols)
    • charList

      public static CharList charList(char... chars)
    • ofCapacity

      public static CharList ofCapacity(int size)
    • charList

      public static CharList charList(String characterString)
    • emptyUnmodifiable

      public static CharList emptyUnmodifiable()
    • empty

      public static CharList empty()
    • copy

      public abstract CharList copy()
    • add

      public abstract void add(int c)
    • stream

      public abstract Stream<Character> stream()
    • addAll

      public abstract void addAll(CharList originalSymbols)
    • addAll

      public abstract void addAll(char[] characters)
    • addAll

      public abstract void addAll(char[] srcArr, int srcLength)
    • size

      public abstract int size()
    • get

      public abstract char get(int index)
    • isEmpty

      public abstract boolean isEmpty()
    • sort

      public abstract void sort()
    • except

      public abstract CharList except(CharPredicate predicate)
    • contains

      public abstract boolean contains(char i)
    • appendTo

      public abstract void appendTo(CharList targetList)
      Add elements of this list into the targetList
      Parameters:
      targetList - list that should be appended with elements of this list
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object