Package eu.bandm.tools.ops
Class IndexSet<T>
java.lang.Object
eu.bandm.tools.ops.IndexSet<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
Implements a set over an index type optimally, by using bit sets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<A> A[]toArray(A[] array) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
IndexSet
-
IndexSet
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
isEmpty
public boolean isEmpty() -
size
public int size() -
iterator
-
contains
-
clear
public void clear() -
add
-
remove
-
addAll
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceSet<T>
-
removeAll
-
retainAll
-
toArray
public <A> A[] toArray(A[] array) -
toArray
-