Package org.apache.druid.collections
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description it.unimi.dsi.fastutil.ints.IntComparator
comparator()
boolean
contains(int k)
boolean
equals(Object o)
int
firstInt()
int
hashCode()
it.unimi.dsi.fastutil.ints.IntSortedSet
headSet(int toElement)
boolean
isEmpty()
it.unimi.dsi.fastutil.ints.IntBidirectionalIterator
iterator()
it.unimi.dsi.fastutil.ints.IntBidirectionalIterator
iterator(int fromElement)
int
lastInt()
int
size()
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.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.IntSet
add, contains, rem, remove, remove
-
-
-
-
Method Detail
-
iterator
public it.unimi.dsi.fastutil.ints.IntBidirectionalIterator iterator()
- Specified by:
iterator
in interfaceCollection<Integer>
- Specified by:
iterator
in interfaceit.unimi.dsi.fastutil.ints.IntBidirectionalIterable
- Specified by:
iterator
in interfaceit.unimi.dsi.fastutil.ints.IntCollection
- Specified by:
iterator
in interfaceit.unimi.dsi.fastutil.ints.IntIterable
- Specified by:
iterator
in interfaceit.unimi.dsi.fastutil.ints.IntSet
- Specified by:
iterator
in interfaceit.unimi.dsi.fastutil.ints.IntSortedSet
- Specified by:
iterator
in interfaceIterable<Integer>
- Specified by:
iterator
in interfaceSet<Integer>
- Specified by:
iterator
in classit.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 interfaceit.unimi.dsi.fastutil.ints.IntCollection
- Overrides:
contains
in classit.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 interfaceCollection<Integer>
- Specified by:
size
in interfaceSet<Integer>
- Specified by:
size
in classAbstractCollection<Integer>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<Integer>
- Specified by:
isEmpty
in interfaceSet<Integer>
- Overrides:
isEmpty
in classAbstractCollection<Integer>
-
equals
public boolean equals(Object o)
-
-