public class FloatLinkedOpenCustomHashSet extends FloatOpenCustomHashSet implements FloatSortedSet
| Constructor and Description |
|---|
FloatLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Float> collection,
float loadFactor,
FloatStrategy strategy)
Deprecated.
|
FloatLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Float> collection,
FloatStrategy strategy)
Deprecated.
|
FloatLinkedOpenCustomHashSet(float[] array,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenCustomHashSet(float[] array,
FloatStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenCustomHashSet(float[] array,
int offset,
int length,
float loadFactor,
FloatStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenCustomHashSet(float[] array,
int offset,
int length,
FloatStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenCustomHashSet(FloatCollection collection,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatLinkedOpenCustomHashSet(FloatCollection collection,
FloatStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatLinkedOpenCustomHashSet(FloatIterator iterator,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenCustomHashSet(FloatIterator iterator,
FloatStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenCustomHashSet(FloatStrategy strategy)
Default Contstructor
|
FloatLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
FloatStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
FloatLinkedOpenCustomHashSet(int minCapacity,
FloatStrategy strategy)
Constructor that defines the minimum capacity
|
FloatLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Float> iterator,
float loadFactor,
FloatStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Float> iterator,
FloatStrategy 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(float o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(float 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
|
FloatComparator |
comparator()
A Type Specific Comparator method
|
float |
firstFloat()
A method to get the first element in the set
|
FloatSortedSet |
headSet(float toElement)
A Type Specific HeadSet method to reduce boxing/unboxing
|
FloatListIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
FloatBidirectionalIterator |
iterator(float fromElement)
A type Specific Iterator starting from a given key
|
float |
lastFloat()
A method to get the last element in the set
|
boolean |
moveToFirst(float o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(float o)
A specific move method to move a given key to the last index.
|
float |
pollFirstFloat()
A method to get and remove the first element in the set
|
float |
pollLastFloat()
A method to get and remove the last element in the set
|
FloatSortedSet |
subSet(float fromElement,
float toElement)
A Type Specific SubSet method to reduce boxing/unboxing
|
FloatSortedSet |
tailSet(float fromElement)
A Type Specific TailSet method to reduce boxing/unboxing
|
add, addAll, addAll, contains, getStrategy, remove, size, trimequals, hashCodeadd, contains, containsAll, containsAny, containsAny, remFloat, remove, removeAll, retainAll, toFloatArray, toFloatArraycontainsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringfirst, headSet, last, spliterator, subSet, tailSetadd, contains, remFloat, remove, removeadd, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remIf, removeAll, removeIf, retainAll, toFloatArray, toFloatArrayforEach, forEachaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayclearAndTrim, trimpublic FloatLinkedOpenCustomHashSet(FloatStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(int minCapacity,
FloatStrategy 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 FloatLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
FloatStrategy 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 FloatLinkedOpenCustomHashSet(float[] array,
FloatStrategy strategy)
array - the elements that should be put into the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(float[] array,
float loadFactor,
FloatStrategy 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 FloatLinkedOpenCustomHashSet(float[] array,
int offset,
int length,
FloatStrategy 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 FloatLinkedOpenCustomHashSet(float[] array,
int offset,
int length,
float loadFactor,
FloatStrategy 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 FloatLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Float> collection,
FloatStrategy 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 FloatLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Float> collection,
float loadFactor,
FloatStrategy 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 FloatLinkedOpenCustomHashSet(FloatCollection collection, FloatStrategy 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 FloatLinkedOpenCustomHashSet(FloatCollection collection, float loadFactor, FloatStrategy 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 FloatLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Float> iterator,
FloatStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Float> iterator,
float loadFactor,
FloatStrategy 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 FloatLinkedOpenCustomHashSet(FloatIterator iterator, FloatStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic FloatLinkedOpenCustomHashSet(FloatIterator iterator, float loadFactor, FloatStrategy 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(float o)
FloatSortedSetaddAndMoveToFirst in interface FloatSortedSeto - the element that should be insertedSet.add(Object)public boolean addAndMoveToLast(float o)
FloatSortedSetaddAndMoveToLast in interface FloatSortedSeto - the element that should be insertedSet.add(Object)public boolean moveToFirst(float o)
FloatSortedSetmoveToFirst in interface FloatSortedSeto - that should be moved to the first indexpublic boolean moveToLast(float o)
FloatSortedSetmoveToLast in interface FloatSortedSeto - that should be moved to the first lastpublic float firstFloat()
FloatSortedSetfirstFloat in interface FloatSortedSetpublic float pollFirstFloat()
FloatSortedSetpollFirstFloat in interface FloatSortedSetpublic float lastFloat()
FloatSortedSetlastFloat in interface FloatSortedSetpublic float pollLastFloat()
FloatSortedSetpollLastFloat in interface FloatSortedSetpublic void clear()
clear in interface java.util.Collection<java.lang.Float>clear in interface java.util.Set<java.lang.Float>clear in class FloatOpenCustomHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class FloatOpenCustomHashSetsize - the amount of elements that should be allowedpublic FloatListIterator iterator()
FloatCollectioniterator in interface java.lang.Iterable<java.lang.Float>iterator in interface java.util.Collection<java.lang.Float>iterator in interface java.util.Set<java.lang.Float>iterator in interface FloatCollectioniterator in interface FloatIterableiterator in interface FloatSetiterator in interface FloatSortedSetiterator in class FloatOpenCustomHashSetCollection.iterator()public FloatBidirectionalIterator iterator(float fromElement)
FloatSortedSetiterator in interface FloatSortedSetfromElement - the element the iterator should start frompublic FloatComparator comparator()
FloatSortedSetcomparator in interface java.util.SortedSet<java.lang.Float>comparator in interface FloatSortedSetpublic FloatSortedSet subSet(float fromElement, float toElement)
FloatSortedSetsubSet in interface FloatSortedSetfromElement - where the SubSet should starttoElement - where the SubSet should endpublic FloatSortedSet headSet(float toElement)
FloatSortedSetheadSet in interface FloatSortedSettoElement - where the HeadSet should endpublic FloatSortedSet tailSet(float fromElement)
FloatSortedSettailSet in interface FloatSortedSetfromElement - where the TailSet should start