public interface LongOrderedSet extends LongSet
ISizeProvider.CollectionSize| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndMoveToFirst(long o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(long o)
A customized add method that allows you to insert into the last index.
|
LongOrderedSet |
copy()
A Function that does a shallow clone of the Collection itself.
|
long |
firstLong()
A method to get the first element in the set
|
LongBidirectionalIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
LongBidirectionalIterator |
iterator(long fromElement)
A type Specific Iterator starting from a given key
|
long |
lastLong()
A method to get the last element in the set
|
boolean |
moveToFirst(long o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(long o)
A specific move method to move a given key to the last index.
|
long |
pollFirstLong()
A method to get and remove the first element in the set
|
long |
pollLastLong()
A method to get and remove the last element in the set
|
default LongSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
default LongOrderedSet |
synchronize()
Creates a Wrapped OrderedSet that is Synchronized
|
default LongOrderedSet |
synchronize(java.lang.Object mutex)
Creates a Wrapped OrderedSet that is Synchronized
|
default LongOrderedSet |
unmodifiable()
Creates a Wrapped OrderedSet that is unmodifiable
|
add, contains, remLong, remove, removeaddAll, 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, toLongArray, toLongArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedof, sizeboolean addAndMoveToFirst(long o)
o - the element that should be insertedSet.add(Object)boolean addAndMoveToLast(long o)
o - the element that should be insertedSet.add(Object)boolean moveToFirst(long o)
o - that should be moved to the first indexboolean moveToLast(long o)
o - that should be moved to the first lastLongOrderedSet copy()
LongCollectioncopy in interface LongCollectioncopy in interface LongSetLongBidirectionalIterator iterator()
LongCollectioniterator in interface java.util.Collection<java.lang.Long>iterator in interface java.lang.Iterable<java.lang.Long>iterator in interface LongCollectioniterator in interface LongIterableiterator in interface LongSetiterator in interface java.util.Set<java.lang.Long>Collection.iterator()LongBidirectionalIterator iterator(long fromElement)
fromElement - the element the iterator should start fromjava.util.NoSuchElementException - if fromElement isn't founddefault LongSplititerator spliterator()
spliterator in interface java.util.Collection<java.lang.Long>spliterator in interface java.lang.Iterable<java.lang.Long>spliterator in interface LongCollectionspliterator in interface LongIterablespliterator in interface LongSetspliterator in interface java.util.Set<java.lang.Long>long firstLong()
long pollFirstLong()
long lastLong()
long pollLastLong()
default LongOrderedSet synchronize()
synchronize in interface LongCollectionsynchronize in interface LongSetLongSets.synchronize(speiger.src.collections.longs.sets.LongSet)default LongOrderedSet synchronize(java.lang.Object mutex)
synchronize in interface LongCollectionsynchronize in interface LongSetmutex - is the controller of the synchronization blockLongSets.synchronize(speiger.src.collections.longs.sets.LongSet)default LongOrderedSet unmodifiable()
unmodifiable in interface LongCollectionunmodifiable in interface LongSetLongSets.unmodifiable(speiger.src.collections.longs.sets.LongSet)