public class DoubleLinkedOpenCustomHashSet extends DoubleOpenCustomHashSet implements DoubleSortedSet
| 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
|
DoubleComparator |
comparator()
A Type Specific Comparator method
|
double |
firstDouble()
A method to get the first element in the set
|
DoubleSortedSet |
headSet(double toElement)
A Type Specific HeadSet method to reduce boxing/unboxing
|
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 |
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
|
DoubleSortedSet |
subSet(double fromElement,
double toElement)
A Type Specific SubSet method to reduce boxing/unboxing
|
DoubleSortedSet |
tailSet(double fromElement)
A Type Specific TailSet method to reduce boxing/unboxing
|
add, addAll, addAll, contains, getStrategy, remove, size, trimequals, hashCodeadd, contains, containsAll, containsAny, containsAny, remDouble, remove, removeAll, retainAll, toDoubleArray, toDoubleArraycontainsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringfirst, headSet, last, spliterator, subSet, tailSetadd, contains, remDouble, remove, removeadd, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remIf, removeAll, removeIf, retainAll, toDoubleArray, toDoubleArrayforEach, forEachaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayclearAndTrim, 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)
DoubleSortedSetaddAndMoveToFirst in interface DoubleSortedSeto - the element that should be insertedSet.add(Object)public boolean addAndMoveToLast(double o)
DoubleSortedSetaddAndMoveToLast in interface DoubleSortedSeto - the element that should be insertedSet.add(Object)public boolean moveToFirst(double o)
DoubleSortedSetmoveToFirst in interface DoubleSortedSeto - that should be moved to the first indexpublic boolean moveToLast(double o)
DoubleSortedSetmoveToLast in interface DoubleSortedSeto - that should be moved to the first lastpublic double firstDouble()
DoubleSortedSetfirstDouble in interface DoubleSortedSetpublic double pollFirstDouble()
DoubleSortedSetpollFirstDouble in interface DoubleSortedSetpublic double lastDouble()
DoubleSortedSetlastDouble in interface DoubleSortedSetpublic double pollLastDouble()
DoubleSortedSetpollLastDouble in interface DoubleSortedSetpublic 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 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 DoubleSetiterator in interface DoubleSortedSetiterator in class DoubleOpenCustomHashSetCollection.iterator()public DoubleBidirectionalIterator iterator(double fromElement)
DoubleSortedSetiterator in interface DoubleSortedSetfromElement - the element the iterator should start frompublic DoubleComparator comparator()
DoubleSortedSetcomparator in interface java.util.SortedSet<java.lang.Double>comparator in interface DoubleSortedSetpublic DoubleSortedSet subSet(double fromElement, double toElement)
DoubleSortedSetsubSet in interface DoubleSortedSetfromElement - where the SubSet should starttoElement - where the SubSet should endpublic DoubleSortedSet headSet(double toElement)
DoubleSortedSetheadSet in interface DoubleSortedSettoElement - where the HeadSet should endpublic DoubleSortedSet tailSet(double fromElement)
DoubleSortedSettailSet in interface DoubleSortedSetfromElement - where the TailSet should start