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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<A> A[]
toArray
(A[] array) 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
-
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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceSet<T>
-
removeAll
-
retainAll
-
toArray
public <A> A[] toArray(A[] array) -
toArray
-