Class Abstract128BitSet

java.lang.Object
com.oracle.truffle.regex.util.Abstract128BitSet
All Implemented Interfaces:
Iterable<Integer>
Direct Known Subclasses:
Immutable128BitSet, Mutable128BitSet

public abstract class Abstract128BitSet extends Object implements Iterable<Integer>
  • Constructor Details

    • Abstract128BitSet

      public Abstract128BitSet()
  • Method Details

    • getLo

      public abstract long getLo()
    • getHi

      public abstract long getHi()
    • isEmpty

      public boolean isEmpty()
    • isFull

      public boolean isFull()
    • size

      public int size()
    • get

      public boolean get(int b)
    • intersects

      public boolean intersects(Abstract128BitSet other)
    • isDisjoint

      public boolean isDisjoint(Abstract128BitSet other)
    • contains

      public boolean contains(Abstract128BitSet other)
    • hashCode

      public int hashCode()
      Compatible with BitSets.hashCode(long[]).
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • matches2CharsWith1BitDifference

      public boolean matches2CharsWith1BitDifference()
    • isSingleRange

      public boolean isSingleRange()
    • getMin

      public int getMin()
      Returns the minimum value currently contained in this set. Must not be called on empty sets.
    • getMax

      public int getMax()
      Returns the maximum value currently contained in this set. Must not be called on empty sets.
    • getMinInverse

      public int getMinInverse()
      Returns the minimum value contained in the inverse of this set. Must not be called on full sets.
    • iterator

      public PrimitiveIterator.OfInt iterator()
      Specified by:
      iterator in interface Iterable<Integer>
    • numberOfRanges

      public int numberOfRanges()
    • rangesIterator

      public Iterator<Range> rangesIterator()
    • spliterator

      public Spliterator.OfInt spliterator()
      Specified by:
      spliterator in interface Iterable<Integer>
    • stream

      public IntStream stream()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • dumpRaw

      public String dumpRaw()