Package eu.bandm.tools.ops
Class BisectionSet<A>
java.lang.Object
java.util.AbstractCollection<A>
java.util.AbstractSet<A>
eu.bandm.tools.ops.BisectionSet<A>
- All Implemented Interfaces:
Iterable<A>,Collection<A>,SequencedCollection<A>,SequencedSet<A>,Set<A>,SortedSet<A>
- Direct Known Subclasses:
BisectionEntrySet
DOCME
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Comparator<? super A> protected final intprotected final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionBisectionSet(SortedList<A> elems) protectedBisectionSet(Comparator<? super A> comparator, List<? extends A> elems, int offset, int length) -
Method Summary
Modifier and TypeMethodDescriptionprotected intComparator<? super A> booleanbooleanDelegate directly to superclass.first()inthashCode()Delegate directly to superclass.iterator()last()protected BisectionSet<A> shift(int offset, int length) intsize()Methods inherited from class java.util.AbstractSet
removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods 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
add, addAll, clear, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from interface java.util.SortedSet
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed, 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:
equalsin interfaceCollection<A>- Specified by:
equalsin interfaceSet<A>- Overrides:
equalsin classAbstractSet<A>
-
hashCode
public int hashCode()Delegate directly to superclass. @see #equals(Object)- Specified by:
hashCodein interfaceCollection<A>- Specified by:
hashCodein interfaceSet<A>- Overrides:
hashCodein classAbstractSet<A>
-
size
public int size()- Specified by:
sizein interfaceCollection<A>- Specified by:
sizein interfaceSet<A>- Specified by:
sizein classAbstractCollection<A>
-
iterator
-
contains
- Specified by:
containsin interfaceCollection<A>- Specified by:
containsin interfaceSet<A>- Overrides:
containsin classAbstractCollection<A>
-
comparator
- Specified by:
comparatorin interfaceSortedSet<A>
-
bisect
-
subSet
-
headSet
-
tailSet
-
shift
-
first
-
last
-