public interface ShortOrderedSet extends ShortSet
ISizeProvider.CollectionSize| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndMoveToFirst(short o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(short o)
A customized add method that allows you to insert into the last index.
|
ShortOrderedSet |
copy()
A Function that does a shallow clone of the Collection itself.
|
short |
firstShort()
A method to get the first element in the set
|
ShortBidirectionalIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
ShortBidirectionalIterator |
iterator(short fromElement)
A type Specific Iterator starting from a given key
|
short |
lastShort()
A method to get the last element in the set
|
boolean |
moveToFirst(short o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(short o)
A specific move method to move a given key to the last index.
|
short |
pollFirstShort()
A method to get and remove the first element in the set
|
short |
pollLastShort()
A method to get and remove the last element in the set
|
default ShortSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
default ShortOrderedSet |
synchronize()
Creates a Wrapped OrderedSet that is Synchronized
|
default ShortOrderedSet |
synchronize(java.lang.Object mutex)
Creates a Wrapped OrderedSet that is Synchronized
|
default ShortOrderedSet |
unmodifiable()
Creates a Wrapped OrderedSet that is unmodifiable
|
add, contains, remove, remove, remShortaddAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayadd, addAll, addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toShortArray, toShortArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedof, sizeboolean addAndMoveToFirst(short o)
o - the element that should be insertedSet.add(Object)boolean addAndMoveToLast(short o)
o - the element that should be insertedSet.add(Object)boolean moveToFirst(short o)
o - that should be moved to the first indexboolean moveToLast(short o)
o - that should be moved to the first lastShortOrderedSet copy()
ShortCollectioncopy in interface ShortCollectioncopy in interface ShortSetShortBidirectionalIterator iterator()
ShortCollectioniterator in interface java.util.Collection<java.lang.Short>iterator in interface java.lang.Iterable<java.lang.Short>iterator in interface java.util.Set<java.lang.Short>iterator in interface ShortCollectioniterator in interface ShortIterableiterator in interface ShortSetCollection.iterator()ShortBidirectionalIterator iterator(short fromElement)
fromElement - the element the iterator should start fromjava.util.NoSuchElementException - if fromElement isn't founddefault ShortSplititerator spliterator()
spliterator in interface java.util.Collection<java.lang.Short>spliterator in interface java.lang.Iterable<java.lang.Short>spliterator in interface java.util.Set<java.lang.Short>spliterator in interface ShortCollectionspliterator in interface ShortIterablespliterator in interface ShortSetshort firstShort()
short pollFirstShort()
short lastShort()
short pollLastShort()
default ShortOrderedSet synchronize()
synchronize in interface ShortCollectionsynchronize in interface ShortSetShortSets.synchronize(speiger.src.collections.shorts.sets.ShortSet)default ShortOrderedSet synchronize(java.lang.Object mutex)
synchronize in interface ShortCollectionsynchronize in interface ShortSetmutex - is the controller of the synchronization blockShortSets.synchronize(speiger.src.collections.shorts.sets.ShortSet)default ShortOrderedSet unmodifiable()
unmodifiable in interface ShortCollectionunmodifiable in interface ShortSetShortSets.unmodifiable(speiger.src.collections.shorts.sets.ShortSet)