public class ByteLinkedOpenCustomHashSet extends ByteOpenCustomHashSet implements ByteSortedSet
| Constructor and Description |
|---|
ByteLinkedOpenCustomHashSet(byte[] array,
ByteStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
ByteLinkedOpenCustomHashSet(byte[] array,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
ByteLinkedOpenCustomHashSet(byte[] array,
int offset,
int length,
ByteStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
ByteLinkedOpenCustomHashSet(byte[] array,
int offset,
int length,
float loadFactor,
ByteStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
ByteLinkedOpenCustomHashSet(ByteCollection collection,
ByteStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
ByteLinkedOpenCustomHashSet(ByteCollection collection,
float loadFactor,
ByteStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
ByteLinkedOpenCustomHashSet(ByteIterator iterator,
ByteStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ByteLinkedOpenCustomHashSet(ByteIterator iterator,
float loadFactor,
ByteStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ByteLinkedOpenCustomHashSet(ByteStrategy strategy)
Default Contstructor
|
ByteLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Byte> collection,
ByteStrategy strategy)
Deprecated.
|
ByteLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Byte> collection,
float loadFactor,
ByteStrategy strategy)
Deprecated.
|
ByteLinkedOpenCustomHashSet(int minCapacity,
ByteStrategy strategy)
Constructor that defines the minimum capacity
|
ByteLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
ByteStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
ByteLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Byte> iterator,
ByteStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
ByteLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Byte> iterator,
float loadFactor,
ByteStrategy 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(byte o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(byte 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
|
ByteComparator |
comparator()
A Type Specific Comparator method
|
byte |
firstByte()
A method to get the first element in the set
|
ByteSortedSet |
headSet(byte toElement)
A Type Specific HeadSet method to reduce boxing/unboxing
|
ByteListIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
ByteBidirectionalIterator |
iterator(byte fromElement)
A type Specific Iterator starting from a given key
|
byte |
lastByte()
A method to get the last element in the set
|
boolean |
moveToFirst(byte o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(byte o)
A specific move method to move a given key to the last index.
|
byte |
pollFirstByte()
A method to get and remove the first element in the set
|
byte |
pollLastByte()
A method to get and remove the last element in the set
|
ByteSortedSet |
subSet(byte fromElement,
byte toElement)
A Type Specific SubSet method to reduce boxing/unboxing
|
ByteSortedSet |
tailSet(byte fromElement)
A Type Specific TailSet method to reduce boxing/unboxing
|
add, addAll, addAll, contains, getStrategy, remove, size, trimequals, hashCodeadd, contains, containsAll, containsAny, containsAny, remByte, remove, removeAll, retainAll, toByteArray, toByteArraycontainsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringfirst, headSet, last, spliterator, subSet, tailSetadd, contains, remByte, remove, removeadd, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remIf, removeAll, removeIf, retainAll, toByteArray, toByteArrayforEach, forEachaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayclearAndTrim, trimpublic ByteLinkedOpenCustomHashSet(ByteStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic ByteLinkedOpenCustomHashSet(int minCapacity,
ByteStrategy 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 ByteLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
ByteStrategy 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 ByteLinkedOpenCustomHashSet(byte[] array,
ByteStrategy strategy)
array - the elements that should be put into the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic ByteLinkedOpenCustomHashSet(byte[] array,
float loadFactor,
ByteStrategy 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 ByteLinkedOpenCustomHashSet(byte[] array,
int offset,
int length,
ByteStrategy 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 ByteLinkedOpenCustomHashSet(byte[] array,
int offset,
int length,
float loadFactor,
ByteStrategy 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 ByteLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Byte> collection,
ByteStrategy 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 ByteLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Byte> collection,
float loadFactor,
ByteStrategy 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 ByteLinkedOpenCustomHashSet(ByteCollection collection, ByteStrategy 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 ByteLinkedOpenCustomHashSet(ByteCollection collection, float loadFactor, ByteStrategy 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 ByteLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Byte> iterator,
ByteStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic ByteLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Byte> iterator,
float loadFactor,
ByteStrategy 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 ByteLinkedOpenCustomHashSet(ByteIterator iterator, ByteStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic ByteLinkedOpenCustomHashSet(ByteIterator iterator, float loadFactor, ByteStrategy 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(byte o)
ByteSortedSetaddAndMoveToFirst in interface ByteSortedSeto - the element that should be insertedSet.add(Object)public boolean addAndMoveToLast(byte o)
ByteSortedSetaddAndMoveToLast in interface ByteSortedSeto - the element that should be insertedSet.add(Object)public boolean moveToFirst(byte o)
ByteSortedSetmoveToFirst in interface ByteSortedSeto - that should be moved to the first indexpublic boolean moveToLast(byte o)
ByteSortedSetmoveToLast in interface ByteSortedSeto - that should be moved to the first lastpublic byte firstByte()
ByteSortedSetfirstByte in interface ByteSortedSetpublic byte pollFirstByte()
ByteSortedSetpollFirstByte in interface ByteSortedSetpublic byte lastByte()
ByteSortedSetlastByte in interface ByteSortedSetpublic byte pollLastByte()
ByteSortedSetpollLastByte in interface ByteSortedSetpublic void clear()
clear in interface java.util.Collection<java.lang.Byte>clear in interface java.util.Set<java.lang.Byte>clear in class ByteOpenCustomHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class ByteOpenCustomHashSetsize - the amount of elements that should be allowedpublic ByteListIterator iterator()
ByteCollectioniterator in interface java.lang.Iterable<java.lang.Byte>iterator in interface java.util.Collection<java.lang.Byte>iterator in interface java.util.Set<java.lang.Byte>iterator in interface ByteCollectioniterator in interface ByteIterableiterator in interface ByteSetiterator in interface ByteSortedSetiterator in class ByteOpenCustomHashSetCollection.iterator()public ByteBidirectionalIterator iterator(byte fromElement)
ByteSortedSetiterator in interface ByteSortedSetfromElement - the element the iterator should start frompublic ByteComparator comparator()
ByteSortedSetcomparator in interface java.util.SortedSet<java.lang.Byte>comparator in interface ByteSortedSetpublic ByteSortedSet subSet(byte fromElement, byte toElement)
ByteSortedSetsubSet in interface ByteSortedSetfromElement - where the SubSet should starttoElement - where the SubSet should endpublic ByteSortedSet headSet(byte toElement)
ByteSortedSetheadSet in interface ByteSortedSettoElement - where the HeadSet should endpublic ByteSortedSet tailSet(byte fromElement)
ByteSortedSettailSet in interface ByteSortedSetfromElement - where the TailSet should start