public class DoubleLinkedOpenCustomHashSet extends DoubleOpenCustomHashSet implements DoubleOrderedSet
| Constructor and Description |
|---|
DoubleLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Double> collection,
DoubleStrategy strategy)
Deprecated.
|
DoubleLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Double> collection,
float loadFactor,
DoubleStrategy strategy)
Deprecated.
|
DoubleLinkedOpenCustomHashSet(double[] array,
DoubleStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
DoubleLinkedOpenCustomHashSet(double[] array,
float loadFactor,
DoubleStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
DoubleLinkedOpenCustomHashSet(double[] array,
int offset,
int length,
DoubleStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
DoubleLinkedOpenCustomHashSet(double[] array,
int offset,
int length,
float loadFactor,
DoubleStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
DoubleLinkedOpenCustomHashSet(DoubleCollection collection,
DoubleStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
DoubleLinkedOpenCustomHashSet(DoubleCollection collection,
float loadFactor,
DoubleStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
DoubleLinkedOpenCustomHashSet(DoubleIterator iterator,
DoubleStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
DoubleLinkedOpenCustomHashSet(DoubleIterator iterator,
float loadFactor,
DoubleStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
DoubleLinkedOpenCustomHashSet(DoubleStrategy strategy)
Default Contstructor
|
DoubleLinkedOpenCustomHashSet(int minCapacity,
DoubleStrategy strategy)
Constructor that defines the minimum capacity
|
DoubleLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
DoubleStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
DoubleLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Double> iterator,
DoubleStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
DoubleLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Double> iterator,
float loadFactor,
DoubleStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
| 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.
|
void |
clear() |
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
DoubleLinkedOpenCustomHashSet |
copy()
A Function that does a shallow clone of the Collection itself.
|
int |
count(Double2BooleanFunction filter)
Helper function to reduce stream usage that allows to count the valid elements.
|
double |
findFirst(Double2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for the first match.
|
double |
firstDouble()
A method to get the first element in the set
|
void |
forEach(DoubleConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
<E> void |
forEach(E input,
ObjectDoubleConsumer<E> action)
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
|
DoubleListIterator |
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 |
matchesAll(Double2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for all matches.
|
boolean |
matchesAny(Double2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for any matches.
|
boolean |
matchesNone(Double2BooleanFunction filter)
Helper function to reduce stream usage that allows to filter for no matches.
|
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
|
double |
reduce(double identity,
DoubleDoubleUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
double |
reduce(DoubleDoubleUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
add, addAll, addAll, contains, getStrategy, remove, size, trimequals, hashCodeadd, contains, containsAll, containsAll, containsAny, containsAny, remDouble, remove, removeAll, removeAll, retainAll, retainAll, toDoubleArray, toDoubleArrayisEmpty, removeAll, retainAll, toArray, toArray, toStringspliterator, synchronize, synchronize, unmodifiableadd, contains, remDouble, remove, removeaddAll, 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, distinct, filter, flatMap, forEach, limit, map, peek, pourAsList, pourAsSet, sortedclearAndTrim, trimpublic DoubleLinkedOpenCustomHashSet(DoubleStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic DoubleLinkedOpenCustomHashSet(int minCapacity,
DoubleStrategy strategy)
minCapacity - the minimum capacity the HashSet is allowed to be.strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativepublic DoubleLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
DoubleStrategy strategy)
minCapacity - the minimum capacity the HashSet is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenCustomHashSet(double[] array,
DoubleStrategy strategy)
array - the elements that should be put into the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic DoubleLinkedOpenCustomHashSet(double[] array,
float loadFactor,
DoubleStrategy strategy)
array - the elements that should be put into the setloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenCustomHashSet(double[] array,
int offset,
int length,
DoubleStrategy strategy)
array - the elements that should be put into the setoffset - the starting index within the array that should be usedlength - the amount of elements used from the arraystrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if offset and length causes to step outside of the arrays rangepublic DoubleLinkedOpenCustomHashSet(double[] array,
int offset,
int length,
float loadFactor,
DoubleStrategy strategy)
array - the elements that should be put into the setoffset - the starting index within the array that should be usedlength - the amount of elements used from the arrayloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1java.lang.IllegalStateException - if offset and length causes to step outside of the arrays range@Deprecated
public DoubleLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Double> collection,
DoubleStrategy strategy)
collection - the set the elements should be added to the Setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is null@Deprecated
public DoubleLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Double> collection,
float loadFactor,
DoubleStrategy strategy)
collection - the set the elements should be added to the SetloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenCustomHashSet(DoubleCollection collection, DoubleStrategy strategy)
collection - the set the elements should be added to the Setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic DoubleLinkedOpenCustomHashSet(DoubleCollection collection, float loadFactor, DoubleStrategy strategy)
collection - the set the elements should be added to the SetloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Double> iterator,
DoubleStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic DoubleLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Double> iterator,
float loadFactor,
DoubleStrategy strategy)
iterator - the elements that should be added to the setloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenCustomHashSet(DoubleIterator iterator, DoubleStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic DoubleLinkedOpenCustomHashSet(DoubleIterator iterator, float loadFactor, DoubleStrategy strategy)
iterator - the elements that should be added to the setloadFactor - the percentage of how full the backing array can be before they resizestrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nulljava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public boolean addAndMoveToFirst(double o)
DoubleOrderedSetaddAndMoveToFirst in interface DoubleOrderedSeto - the element that should be insertedSet.add(Object)public boolean addAndMoveToLast(double o)
DoubleOrderedSetaddAndMoveToLast in interface DoubleOrderedSeto - the element that should be insertedSet.add(Object)public boolean moveToFirst(double o)
DoubleOrderedSetmoveToFirst in interface DoubleOrderedSeto - that should be moved to the first indexpublic boolean moveToLast(double o)
DoubleOrderedSetmoveToLast in interface DoubleOrderedSeto - that should be moved to the first lastpublic double firstDouble()
DoubleOrderedSetfirstDouble in interface DoubleOrderedSetpublic double pollFirstDouble()
DoubleOrderedSetpollFirstDouble in interface DoubleOrderedSetpublic double lastDouble()
DoubleOrderedSetlastDouble in interface DoubleOrderedSetpublic double pollLastDouble()
DoubleOrderedSetpollLastDouble in interface DoubleOrderedSetpublic void clear()
clear in interface java.util.Collection<java.lang.Double>clear in interface java.util.Set<java.lang.Double>clear in class DoubleOpenCustomHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class DoubleOpenCustomHashSetsize - the amount of elements that should be allowedpublic void forEach(DoubleConsumer action)
DoubleIterableforEach in interface DoubleIterableforEach in class DoubleOpenCustomHashSetaction - The action to be performed for each elementIterable.forEach(Consumer)public <E> void forEach(E input,
ObjectDoubleConsumer<E> action)
DoubleIterableforEach in interface DoubleIterableforEach in class DoubleOpenCustomHashSetE - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementpublic boolean matchesAny(Double2BooleanFunction filter)
DoubleIterablematchesAny in interface DoubleIterablematchesAny in class DoubleOpenCustomHashSetfilter - that should be appliedpublic boolean matchesNone(Double2BooleanFunction filter)
DoubleIterablematchesNone in interface DoubleIterablematchesNone in class DoubleOpenCustomHashSetfilter - that should be appliedpublic boolean matchesAll(Double2BooleanFunction filter)
DoubleIterablematchesAll in interface DoubleIterablematchesAll in class DoubleOpenCustomHashSetfilter - that should be appliedpublic double reduce(double identity,
DoubleDoubleUnaryOperator operator)
DoubleIterablereduce in interface DoubleIterablereduce in class DoubleOpenCustomHashSetidentity - the start valueoperator - the operation that should be appliedpublic double reduce(DoubleDoubleUnaryOperator operator)
DoubleIterablereduce in interface DoubleIterablereduce in class DoubleOpenCustomHashSetoperator - the operation that should be appliedpublic double findFirst(Double2BooleanFunction filter)
DoubleIterablefindFirst in interface DoubleIterablefindFirst in class DoubleOpenCustomHashSetfilter - that should be appliedpublic int count(Double2BooleanFunction filter)
DoubleIterablecount in interface DoubleIterablecount in class DoubleOpenCustomHashSetfilter - that should be appliedpublic DoubleListIterator iterator()
DoubleCollectioniterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Collection<java.lang.Double>iterator in interface java.util.Set<java.lang.Double>iterator in interface DoubleCollectioniterator in interface DoubleIterableiterator in interface DoubleOrderedSetiterator in interface DoubleSetiterator in class DoubleOpenCustomHashSetCollection.iterator()public DoubleBidirectionalIterator iterator(double fromElement)
DoubleOrderedSetiterator in interface DoubleOrderedSetfromElement - the element the iterator should start frompublic DoubleLinkedOpenCustomHashSet copy()
DoubleCollectioncopy in interface DoubleCollectioncopy in interface DoubleOrderedSetcopy in interface DoubleSetcopy in class DoubleOpenCustomHashSet