public interface DoubleOrderedSet extends DoubleSet
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndMoveToFirst(double o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(double o)
A customized add method that allows you to insert into the last index.
|
DoubleOrderedSet |
copy()
A Function that does a shallow clone of the Collection itself.
|
double |
firstDouble()
A method to get the first element in the set
|
DoubleBidirectionalIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
DoubleBidirectionalIterator |
iterator(double fromElement)
A type Specific Iterator starting from a given key
|
double |
lastDouble()
A method to get the last element in the set
|
boolean |
moveToFirst(double o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(double o)
A specific move method to move a given key to the last index.
|
double |
pollFirstDouble()
A method to get and remove the first element in the set
|
double |
pollLastDouble()
A method to get and remove the last element in the set
|
default DoubleSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
default DoubleOrderedSet |
synchronize()
Creates a Wrapped OrderedSet that is Synchronized
|
default DoubleOrderedSet |
synchronize(java.lang.Object mutex)
Creates a Wrapped OrderedSet that is Synchronized
|
default DoubleOrderedSet |
unmodifiable()
Creates a Wrapped OrderedSet that is unmodifiable
|
add, contains, remDouble, 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, toDoubleArray, toDoubleArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedboolean addAndMoveToFirst(double o)
o - the element that should be insertedSet.add(Object)boolean addAndMoveToLast(double o)
o - the element that should be insertedSet.add(Object)boolean moveToFirst(double o)
o - that should be moved to the first indexboolean moveToLast(double o)
o - that should be moved to the first lastDoubleOrderedSet copy()
DoubleCollectioncopy in interface DoubleCollectioncopy in interface DoubleSetDoubleBidirectionalIterator iterator()
DoubleCollectioniterator in interface java.util.Collection<java.lang.Double>iterator in interface DoubleCollectioniterator in interface DoubleIterableiterator in interface DoubleSetiterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Set<java.lang.Double>Collection.iterator()DoubleBidirectionalIterator iterator(double fromElement)
fromElement - the element the iterator should start fromjava.util.NoSuchElementException - if fromElement isn't founddefault DoubleSplititerator spliterator()
spliterator in interface java.util.Collection<java.lang.Double>spliterator in interface DoubleCollectionspliterator in interface DoubleIterablespliterator in interface DoubleSetspliterator in interface java.lang.Iterable<java.lang.Double>spliterator in interface java.util.Set<java.lang.Double>double firstDouble()
double pollFirstDouble()
double lastDouble()
double pollLastDouble()
default DoubleOrderedSet synchronize()
synchronize in interface DoubleCollectionsynchronize in interface DoubleSetDoubleSets.synchronize(speiger.src.collections.doubles.sets.DoubleSet)default DoubleOrderedSet synchronize(java.lang.Object mutex)
synchronize in interface DoubleCollectionsynchronize in interface DoubleSetmutex - is the controller of the synchronization blockDoubleSets.synchronize(speiger.src.collections.doubles.sets.DoubleSet)default DoubleOrderedSet unmodifiable()
unmodifiable in interface DoubleCollectionunmodifiable in interface DoubleSetDoubleSets.unmodifiable(speiger.src.collections.doubles.sets.DoubleSet)