public class FloatLinkedOpenHashSet extends FloatOpenHashSet implements FloatSortedSet
| Constructor and Description |
|---|
FloatLinkedOpenHashSet()
Default Constructor
|
FloatLinkedOpenHashSet(java.util.Collection<? extends java.lang.Float> collection)
Deprecated.
|
FloatLinkedOpenHashSet(java.util.Collection<? extends java.lang.Float> collection,
float loadFactor)
Deprecated.
|
FloatLinkedOpenHashSet(float[] array)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenHashSet(float[] array,
float loadFactor)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenHashSet(float[] array,
int offset,
int length)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenHashSet(float[] array,
int offset,
int length,
float loadFactor)
Helper constructor that allow to create a set from unboxed values
|
FloatLinkedOpenHashSet(FloatCollection collection)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatLinkedOpenHashSet(FloatCollection collection,
float loadFactor)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
FloatLinkedOpenHashSet(FloatIterator iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenHashSet(FloatIterator iterator,
float loadFactor)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenHashSet(int minCapacity)
Constructor that defines the minimum capacity
|
FloatLinkedOpenHashSet(int minCapacity,
float loadFactor)
Constructor that defines the minimum capacity and load factor
|
FloatLinkedOpenHashSet(java.util.Iterator<java.lang.Float> iterator)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
FloatLinkedOpenHashSet(java.util.Iterator<java.lang.Float> 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(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, contains, remove, remove, size, trimequals, hashCodeadd, containsAll, containsAny, containsAny, remFloat, 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 FloatLinkedOpenHashSet()
public FloatLinkedOpenHashSet(int minCapacity)
minCapacity - the minimum capacity the HashSet is allowed to be.java.lang.IllegalStateException - if the minimum capacity is negativepublic FloatLinkedOpenHashSet(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 FloatLinkedOpenHashSet(float[] array)
array - the elements that should be put into the setpublic FloatLinkedOpenHashSet(float[] 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 FloatLinkedOpenHashSet(float[] 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 FloatLinkedOpenHashSet(float[] 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 FloatLinkedOpenHashSet(java.util.Collection<? extends java.lang.Float> collection)
collection - the set the elements should be added to the Set@Deprecated
public FloatLinkedOpenHashSet(java.util.Collection<? extends java.lang.Float> 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 FloatLinkedOpenHashSet(FloatCollection collection)
collection - the set the elements should be added to the Setpublic FloatLinkedOpenHashSet(FloatCollection 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 FloatLinkedOpenHashSet(java.util.Iterator<java.lang.Float> iterator)
iterator - the elements that should be added to the setpublic FloatLinkedOpenHashSet(java.util.Iterator<java.lang.Float> 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 FloatLinkedOpenHashSet(FloatIterator iterator)
iterator - the elements that should be added to the setpublic FloatLinkedOpenHashSet(FloatIterator 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(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 FloatOpenHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class FloatOpenHashSetsize - 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 FloatOpenHashSetCollection.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