public class ShortLinkedOpenCustomHashSet extends ShortOpenCustomHashSet implements ShortSortedSet
| Constructor and Description |
|---|
ShortLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Short> collection,
float loadFactor,
ShortStrategy strategy)
Deprecated.
|
ShortLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Short> collection,
ShortStrategy strategy)
Deprecated.
|
ShortLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
ShortStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
ShortLinkedOpenCustomHashSet(int minCapacity,
ShortStrategy strategy)
Constructor that defines the minimum capacity
|
ShortLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Short> iterator,
float loadFactor,
ShortStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ShortLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Short> iterator,
ShortStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ShortLinkedOpenCustomHashSet(short[] array,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
ShortLinkedOpenCustomHashSet(short[] array,
int offset,
int length,
float loadFactor,
ShortStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
ShortLinkedOpenCustomHashSet(short[] array,
int offset,
int length,
ShortStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
ShortLinkedOpenCustomHashSet(short[] array,
ShortStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
ShortLinkedOpenCustomHashSet(ShortCollection collection,
float loadFactor,
ShortStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
ShortLinkedOpenCustomHashSet(ShortCollection collection,
ShortStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
ShortLinkedOpenCustomHashSet(ShortIterator iterator,
float loadFactor,
ShortStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ShortLinkedOpenCustomHashSet(ShortIterator iterator,
ShortStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ShortLinkedOpenCustomHashSet(ShortStrategy strategy)
Default Contstructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAndMoveToFirst(short o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(short 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
|
ShortComparator |
comparator()
A Type Specific Comparator method
|
short |
firstShort()
A method to get the first element in the set
|
ShortSortedSet |
headSet(short toElement)
A Type Specific HeadSet method to reduce boxing/unboxing
|
ShortListIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
ShortBidirectionalIterator |
iterator(short fromElement)
A type Specific Iterator starting from a given key
|
short |
lastShort()
A method to get the last element in the set
|
boolean |
moveToFirst(short o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(short o)
A specific move method to move a given key to the last index.
|
short |
pollFirstShort()
A method to get and remove the first element in the set
|
short |
pollLastShort()
A method to get and remove the last element in the set
|
ShortSortedSet |
subSet(short fromElement,
short toElement)
A Type Specific SubSet method to reduce boxing/unboxing
|
ShortSortedSet |
tailSet(short fromElement)
A Type Specific TailSet method to reduce boxing/unboxing
|
add, addAll, addAll, contains, getStrategy, remove, size, trimequals, hashCodeadd, contains, containsAll, containsAny, containsAny, remove, removeAll, remShort, retainAll, toShortArray, toShortArraycontainsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringfirst, headSet, last, spliterator, subSet, tailSetadd, contains, remove, remove, remShortadd, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remIf, removeAll, removeIf, retainAll, toShortArray, toShortArrayforEach, forEachaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayclearAndTrim, trimpublic ShortLinkedOpenCustomHashSet(ShortStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic ShortLinkedOpenCustomHashSet(int minCapacity,
ShortStrategy 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 ShortLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
ShortStrategy 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 ShortLinkedOpenCustomHashSet(short[] array,
ShortStrategy strategy)
array - the elements that should be put into the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic ShortLinkedOpenCustomHashSet(short[] array,
float loadFactor,
ShortStrategy 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 ShortLinkedOpenCustomHashSet(short[] array,
int offset,
int length,
ShortStrategy 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 ShortLinkedOpenCustomHashSet(short[] array,
int offset,
int length,
float loadFactor,
ShortStrategy 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 ShortLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Short> collection,
ShortStrategy 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 ShortLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Short> collection,
float loadFactor,
ShortStrategy 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 ShortLinkedOpenCustomHashSet(ShortCollection collection, ShortStrategy 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 ShortLinkedOpenCustomHashSet(ShortCollection collection, float loadFactor, ShortStrategy 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 ShortLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Short> iterator,
ShortStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic ShortLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Short> iterator,
float loadFactor,
ShortStrategy 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 ShortLinkedOpenCustomHashSet(ShortIterator iterator, ShortStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic ShortLinkedOpenCustomHashSet(ShortIterator iterator, float loadFactor, ShortStrategy 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(short o)
ShortSortedSetaddAndMoveToFirst in interface ShortSortedSeto - the element that should be insertedSet.add(Object)public boolean addAndMoveToLast(short o)
ShortSortedSetaddAndMoveToLast in interface ShortSortedSeto - the element that should be insertedSet.add(Object)public boolean moveToFirst(short o)
ShortSortedSetmoveToFirst in interface ShortSortedSeto - that should be moved to the first indexpublic boolean moveToLast(short o)
ShortSortedSetmoveToLast in interface ShortSortedSeto - that should be moved to the first lastpublic short firstShort()
ShortSortedSetfirstShort in interface ShortSortedSetpublic short pollFirstShort()
ShortSortedSetpollFirstShort in interface ShortSortedSetpublic short lastShort()
ShortSortedSetlastShort in interface ShortSortedSetpublic short pollLastShort()
ShortSortedSetpollLastShort in interface ShortSortedSetpublic void clear()
clear in interface java.util.Collection<java.lang.Short>clear in interface java.util.Set<java.lang.Short>clear in class ShortOpenCustomHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class ShortOpenCustomHashSetsize - the amount of elements that should be allowedpublic ShortListIterator iterator()
ShortCollectioniterator in interface java.lang.Iterable<java.lang.Short>iterator in interface java.util.Collection<java.lang.Short>iterator in interface java.util.Set<java.lang.Short>iterator in interface ShortCollectioniterator in interface ShortIterableiterator in interface ShortSetiterator in interface ShortSortedSetiterator in class ShortOpenCustomHashSetCollection.iterator()public ShortBidirectionalIterator iterator(short fromElement)
ShortSortedSetiterator in interface ShortSortedSetfromElement - the element the iterator should start frompublic ShortComparator comparator()
ShortSortedSetcomparator in interface java.util.SortedSet<java.lang.Short>comparator in interface ShortSortedSetpublic ShortSortedSet subSet(short fromElement, short toElement)
ShortSortedSetsubSet in interface ShortSortedSetfromElement - where the SubSet should starttoElement - where the SubSet should endpublic ShortSortedSet headSet(short toElement)
ShortSortedSetheadSet in interface ShortSortedSettoElement - where the HeadSet should endpublic ShortSortedSet tailSet(short fromElement)
ShortSortedSettailSet in interface ShortSortedSetfromElement - where the TailSet should start