public class DoubleLinkedOpenHashSet extends DoubleOpenHashSet implements DoubleSortedSet
| Constructor and Description |
|---|
DoubleLinkedOpenHashSet()
Default Constructor
|
DoubleLinkedOpenHashSet(java.util.Collection<? extends java.lang.Double> collection)
Deprecated.
|
DoubleLinkedOpenHashSet(java.util.Collection<? extends java.lang.Double> collection,
float loadFactor)
Deprecated.
|
DoubleLinkedOpenHashSet(double[] array)
Helper constructor that allow to create a set from unboxed values
|
DoubleLinkedOpenHashSet(double[] array,
float loadFactor)
Helper constructor that allow to create a set from unboxed values
|
DoubleLinkedOpenHashSet(double[] array,
int offset,
int length)
Helper constructor that allow to create a set from unboxed values
|
DoubleLinkedOpenHashSet(double[] array,
int offset,
int length,
float loadFactor)
Helper constructor that allow to create a set from unboxed values
|
DoubleLinkedOpenHashSet(DoubleCollection collection)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
DoubleLinkedOpenHashSet(DoubleCollection collection,
float loadFactor)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
DoubleLinkedOpenHashSet(DoubleIterator iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
DoubleLinkedOpenHashSet(DoubleIterator iterator,
float loadFactor)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
DoubleLinkedOpenHashSet(int minCapacity)
Constructor that defines the minimum capacity
|
DoubleLinkedOpenHashSet(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
DoubleLinkedOpenHashSet(java.util.Iterator<java.lang.Double> iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
DoubleLinkedOpenHashSet(java.util.Iterator<java.lang.Double> iterator,
float loadFactor)
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, contains, remove, remove, size, trimequals, hashCodeadd, containsAll, containsAny, containsAny, remDouble, 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 DoubleLinkedOpenHashSet()
public DoubleLinkedOpenHashSet(int minCapacity)
minCapacity - the minimum capacity the HashSet is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic DoubleLinkedOpenHashSet(int minCapacity,
float loadFactor)
minCapacity - the minimum capacity the HashSet is allowed to be.loadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the minimum capacity is negativejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenHashSet(double[] array)
array - the elements that should be put into the setpublic DoubleLinkedOpenHashSet(double[] array,
float loadFactor)
array - the elements that should be put into the setloadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenHashSet(double[] array,
int offset,
int length)
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 arrayjava.lang.IllegalStateException - if offset and length causes to step outside of the arrays rangepublic DoubleLinkedOpenHashSet(double[] array,
int offset,
int length,
float loadFactor)
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 resizejava.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 DoubleLinkedOpenHashSet(java.util.Collection<? extends java.lang.Double> collection)
collection - the set the elements should be added to the Set@Deprecated
public DoubleLinkedOpenHashSet(java.util.Collection<? extends java.lang.Double> collection,
float loadFactor)
collection - the set the elements should be added to the SetloadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenHashSet(DoubleCollection collection)
collection - the set the elements should be added to the Setpublic DoubleLinkedOpenHashSet(DoubleCollection collection, float loadFactor)
collection - the set the elements should be added to the SetloadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenHashSet(java.util.Iterator<java.lang.Double> iterator)
iterator - the elements that should be added to the setpublic DoubleLinkedOpenHashSet(java.util.Iterator<java.lang.Double> iterator,
float loadFactor)
iterator - the elements that should be added to the setloadFactor - the percentage of how full the backing array can be before they resizejava.lang.IllegalStateException - if the loadfactor is either below/equal to 0 or above/equal to 1public DoubleLinkedOpenHashSet(DoubleIterator iterator)
iterator - the elements that should be added to the setpublic DoubleLinkedOpenHashSet(DoubleIterator iterator, float loadFactor)
iterator - the elements that should be added to the setloadFactor - the percentage of how full the backing array can be before they resizejava.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 DoubleOpenHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class DoubleOpenHashSetsize - 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 DoubleOpenHashSetCollection.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