Class RangeIntSet

java.lang.Object
java.util.AbstractCollection<Integer>
it.unimi.dsi.fastutil.ints.AbstractIntCollection
it.unimi.dsi.fastutil.ints.AbstractIntSet
it.unimi.dsi.fastutil.ints.AbstractIntSortedSet
org.apache.druid.collections.RangeIntSet
All Implemented Interfaces:
it.unimi.dsi.fastutil.ints.IntBidirectionalIterable, it.unimi.dsi.fastutil.ints.IntCollection, it.unimi.dsi.fastutil.ints.IntIterable, it.unimi.dsi.fastutil.ints.IntSet, it.unimi.dsi.fastutil.ints.IntSortedSet, Cloneable, Iterable<Integer>, Collection<Integer>, Set<Integer>, SortedSet<Integer>

public class RangeIntSet extends it.unimi.dsi.fastutil.ints.AbstractIntSortedSet
Set from start (inclusive) to end (exclusive).
  • Constructor Summary

    Constructors
    Constructor
    Description
    RangeIntSet(int start, int end)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    it.unimi.dsi.fastutil.ints.IntComparator
     
    boolean
    contains(int k)
     
    boolean
     
    int
     
    int
     
    it.unimi.dsi.fastutil.ints.IntSortedSet
    headSet(int toElement)
     
    boolean
     
    it.unimi.dsi.fastutil.ints.IntBidirectionalIterator
     
    it.unimi.dsi.fastutil.ints.IntBidirectionalIterator
    iterator(int fromElement)
     
    int
     
    int
     
    it.unimi.dsi.fastutil.ints.IntSortedSet
    subSet(int fromElement, int toElement)
     
    it.unimi.dsi.fastutil.ints.IntSortedSet
    tailSet(int fromElement)
     

    Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntSet

    rem, remove

    Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntCollection

    add, add, addAll, addAll, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toIntArray, toIntArray, toString

    Methods inherited from class java.util.AbstractCollection

    clear, toArray, toArray

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    toArray

    Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection

    add, addAll, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toIntArray, toIntArray

    Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterable

    forEach, forEach, forEach

    Methods inherited from interface it.unimi.dsi.fastutil.ints.IntSet

    add, contains, rem, remove, remove

    Methods inherited from interface it.unimi.dsi.fastutil.ints.IntSortedSet

    first, headSet, last, spliterator, subSet, tailSet

    Methods inherited from interface java.util.Set

    add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
  • Constructor Details

    • RangeIntSet

      public RangeIntSet(int start, int end)
  • Method Details

    • iterator

      public it.unimi.dsi.fastutil.ints.IntBidirectionalIterator iterator()
      Specified by:
      iterator in interface Collection<Integer>
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.ints.IntBidirectionalIterable
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.ints.IntCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.ints.IntIterable
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.ints.IntSet
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.ints.IntSortedSet
      Specified by:
      iterator in interface Iterable<Integer>
      Specified by:
      iterator in interface Set<Integer>
      Specified by:
      iterator in class it.unimi.dsi.fastutil.ints.AbstractIntSortedSet
    • iterator

      public it.unimi.dsi.fastutil.ints.IntBidirectionalIterator iterator(int fromElement)
    • contains

      public boolean contains(int k)
      Specified by:
      contains in interface it.unimi.dsi.fastutil.ints.IntCollection
      Overrides:
      contains in class it.unimi.dsi.fastutil.ints.AbstractIntCollection
    • subSet

      public it.unimi.dsi.fastutil.ints.IntSortedSet subSet(int fromElement, int toElement)
    • headSet

      public it.unimi.dsi.fastutil.ints.IntSortedSet headSet(int toElement)
    • tailSet

      public it.unimi.dsi.fastutil.ints.IntSortedSet tailSet(int fromElement)
    • comparator

      public it.unimi.dsi.fastutil.ints.IntComparator comparator()
    • firstInt

      public int firstInt()
    • lastInt

      public int lastInt()
    • size

      public int size()
      Specified by:
      size in interface Collection<Integer>
      Specified by:
      size in interface Set<Integer>
      Specified by:
      size in class AbstractCollection<Integer>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Integer>
      Specified by:
      isEmpty in interface Set<Integer>
      Overrides:
      isEmpty in class AbstractCollection<Integer>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Collection<Integer>
      Specified by:
      equals in interface Set<Integer>
      Overrides:
      equals in class it.unimi.dsi.fastutil.ints.AbstractIntSet
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Collection<Integer>
      Specified by:
      hashCode in interface Set<Integer>
      Overrides:
      hashCode in class it.unimi.dsi.fastutil.ints.AbstractIntSet