Package eu.bandm.tools.ops
Class ArraySortedList<A>
java.lang.Object
java.util.AbstractCollection<A>
java.util.AbstractList<A>
eu.bandm.tools.ops.ArraySortedList<A>
- All Implemented Interfaces:
SortedList<A>,Iterable<A>,Collection<A>,List<A>,SequencedCollection<A>
- Direct Known Subclasses:
ArraySortedEntryList
Implementation of a sorted list by an underlying array.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionArraySortedList(Comparator<? super A> comparator) ArraySortedList(Comparator<? super A> comparator, int capacity) ArraySortedList(Comparator<? super A> comparator, A... elems) ArraySortedList(Comparator<? super A> comparator, List<? extends A> elems) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(SortedList<? extends A> more) booleanbooleanaddUnchecked(A a) asSet()Comparator<? super A> booleanDelegate directly to superclass.first()get(int index) inthashCode()Delegate directly to superclass.last()intsize()Methods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, 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.List
add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, getFirst, getLast, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
ArraySortedList
-
ArraySortedList
-
ArraySortedList
-
ArraySortedList
-
-
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 interfaceList<A>- Overrides:
equalsin classAbstractList<A>
-
hashCode
public int hashCode()Delegate directly to superclass. @see #equals(Object)- Specified by:
hashCodein interfaceCollection<A>- Specified by:
hashCodein interfaceList<A>- Overrides:
hashCodein classAbstractList<A>
-
size
public int size()- Specified by:
sizein interfaceCollection<A>- Specified by:
sizein interfaceList<A>- Specified by:
sizein classAbstractCollection<A>
-
get
-
first
- Specified by:
firstin interfaceSortedList<A>
-
last
- Specified by:
lastin interfaceSortedList<A>
-
comparator
- Specified by:
comparatorin interfaceSortedList<A>
-
add
- Specified by:
addin interfaceCollection<A>- Specified by:
addin interfaceList<A>- Overrides:
addin classAbstractList<A>
-
addUnchecked
-
addAll
-
addAll
-
asSet
-