Package eu.bandm.tools.ops
Class BisectionSet<A>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<A>
eu.bandm.tools.ops.BisectionSet<A>
- All Implemented Interfaces:
Iterable<A>
,Collection<A>
,Set<A>
,SortedSet<A>
- Direct Known Subclasses:
BisectionEntrySet
DOCME
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Comparator<? super A>
protected final int
protected final int
-
Constructor Summary
ModifierConstructorDescriptionBisectionSet
(SortedList<A> elems) protected
BisectionSet
(Comparator<? super A> comparator, List<? extends A> elems, int offset, int length) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Comparator<? super A>
boolean
boolean
Delegate directly to superclass.first()
int
hashCode()
Delegate directly to superclass.iterator()
last()
protected BisectionSet<A>
shift
(int offset, int length) int
size()
Methods inherited from class java.util.AbstractSet
removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, 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
add, addAll, clear, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from interface java.util.SortedSet
spliterator
-
Field Details
-
comparator
-
elems
-
offset
protected final int offset -
length
protected final int length
-
-
Constructor Details
-
BisectionSet
-
BisectionSet
protected BisectionSet(Comparator<? super A> comparator, List<? extends A> elems, int offset, int length)
-
-
Method Details
-
equals
Delegate directly to superclass. Only semantics shall be subject to equals(), not the implementation.- Specified by:
equals
in interfaceCollection<A>
- Specified by:
equals
in interfaceSet<A>
- Overrides:
equals
in classAbstractSet<A>
-
hashCode
public int hashCode()Delegate directly to superclass. @see #equals(Object)- Specified by:
hashCode
in interfaceCollection<A>
- Specified by:
hashCode
in interfaceSet<A>
- Overrides:
hashCode
in classAbstractSet<A>
-
size
public int size()- Specified by:
size
in interfaceCollection<A>
- Specified by:
size
in interfaceSet<A>
- Specified by:
size
in classAbstractCollection<A>
-
iterator
-
contains
- Specified by:
contains
in interfaceCollection<A>
- Specified by:
contains
in interfaceSet<A>
- Overrides:
contains
in classAbstractCollection<A>
-
comparator
- Specified by:
comparator
in interfaceSortedSet<A>
-
bisect
-
subSet
-
headSet
-
tailSet
-
shift
-
first
-
last
-