Package org.apache.druid.collections
Class IntegerSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<Integer>
-
- org.apache.druid.collections.IntegerSet
-
public class IntegerSet extends AbstractSet<Integer>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntegerSet.BitSetIterator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Integer integer)booleanaddAll(Collection<? extends Integer> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanisEmpty()Iterator<Integer>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()static IntegerSetwrap(MutableBitmap mutableBitmap)-
Methods inherited from class java.util.AbstractSet
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
spliterator, toArray
-
-
-
-
Method Detail
-
wrap
public static IntegerSet wrap(MutableBitmap mutableBitmap)
-
size
public int size()
- Specified by:
sizein interfaceCollection<Integer>- Specified by:
sizein interfaceSet<Integer>- Specified by:
sizein classAbstractCollection<Integer>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<Integer>- Specified by:
isEmptyin interfaceSet<Integer>- Overrides:
isEmptyin classAbstractCollection<Integer>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<Integer>- Specified by:
containsin interfaceSet<Integer>- Overrides:
containsin classAbstractCollection<Integer>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<Integer>- Specified by:
toArrayin interfaceSet<Integer>- Overrides:
toArrayin classAbstractCollection<Integer>
-
add
public boolean add(Integer integer)
- Specified by:
addin interfaceCollection<Integer>- Specified by:
addin interfaceSet<Integer>- Overrides:
addin classAbstractCollection<Integer>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<Integer>- Specified by:
removein interfaceSet<Integer>- Overrides:
removein classAbstractCollection<Integer>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<Integer>- Specified by:
containsAllin interfaceSet<Integer>- Overrides:
containsAllin classAbstractCollection<Integer>
-
addAll
public boolean addAll(Collection<? extends Integer> c)
- Specified by:
addAllin interfaceCollection<Integer>- Specified by:
addAllin interfaceSet<Integer>- Overrides:
addAllin classAbstractCollection<Integer>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<Integer>- Specified by:
retainAllin interfaceSet<Integer>- Overrides:
retainAllin classAbstractCollection<Integer>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<Integer>- Specified by:
removeAllin interfaceSet<Integer>- Overrides:
removeAllin classAbstractSet<Integer>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<Integer>- Specified by:
clearin interfaceSet<Integer>- Overrides:
clearin classAbstractCollection<Integer>
-
-