T - the type of elements maintained by this Collectionpublic interface ObjectOrderedSet<T> extends ObjectSet<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndMoveToFirst(T o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(T o)
A customized add method that allows you to insert into the last index.
|
ObjectOrderedSet<T> |
copy()
A Function that does a shallow clone of the Collection itself.
|
T |
first()
A method to get the first element in the set
|
ObjectBidirectionalIterator<T> |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
ObjectBidirectionalIterator<T> |
iterator(T fromElement)
A type Specific Iterator starting from a given key
|
T |
last()
A method to get the last element in the set
|
boolean |
moveToFirst(T o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(T o)
A specific move method to move a given key to the last index.
|
T |
pollFirst()
A method to get and remove the first element in the set
|
T |
pollLast()
A method to get and remove the last element in the set
|
default ObjectSplititerator<T> |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
default ObjectOrderedSet<T> |
synchronize()
Creates a Wrapped OrderedSet that is Synchronized
|
default ObjectOrderedSet<T> |
synchronize(java.lang.Object mutex)
Creates a Wrapped OrderedSet that is Synchronized
|
default ObjectOrderedSet<T> |
unmodifiable()
Creates a Wrapped OrderedSet that is unmodifiable
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayaddAll, addAll, addAll, addAll, containsAll, containsAny, containsAny, pour, removeAll, removeAll, retainAll, retainAll, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedboolean addAndMoveToFirst(T o)
o - the element that should be insertedSet.add(Object)boolean addAndMoveToLast(T o)
o - the element that should be insertedSet.add(Object)boolean moveToFirst(T o)
o - that should be moved to the first indexboolean moveToLast(T o)
o - that should be moved to the first lastObjectOrderedSet<T> copy()
ObjectCollectionObjectBidirectionalIterator<T> iterator()
ObjectCollectioniterator in interface java.util.Collection<T>iterator in interface java.lang.Iterable<T>iterator in interface ObjectCollection<T>iterator in interface ObjectIterable<T>iterator in interface ObjectSet<T>iterator in interface java.util.Set<T>Collection.iterator()ObjectBidirectionalIterator<T> iterator(T fromElement)
fromElement - the element the iterator should start fromjava.util.NoSuchElementException - if fromElement isn't founddefault ObjectSplititerator<T> spliterator()
spliterator in interface java.util.Collection<T>spliterator in interface java.lang.Iterable<T>spliterator in interface ObjectCollection<T>spliterator in interface ObjectIterable<T>spliterator in interface ObjectSet<T>spliterator in interface java.util.Set<T>T first()
T pollFirst()
T last()
T pollLast()
default ObjectOrderedSet<T> synchronize()
synchronize in interface ObjectCollection<T>synchronize in interface ObjectSet<T>ObjectSets.synchronize(speiger.src.collections.objects.sets.ObjectSet<T>)default ObjectOrderedSet<T> synchronize(java.lang.Object mutex)
synchronize in interface ObjectCollection<T>synchronize in interface ObjectSet<T>mutex - is the controller of the synchronization blockObjectSets.synchronize(speiger.src.collections.objects.sets.ObjectSet<T>)default ObjectOrderedSet<T> unmodifiable()
unmodifiable in interface ObjectCollection<T>unmodifiable in interface ObjectSet<T>ObjectSets.unmodifiable(speiger.src.collections.objects.sets.ObjectSet<T>)