public class CharLinkedOpenCustomHashSet extends CharOpenCustomHashSet implements CharSortedSet
| Constructor and Description |
|---|
CharLinkedOpenCustomHashSet(char[] array,
CharStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
CharLinkedOpenCustomHashSet(char[] array,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
CharLinkedOpenCustomHashSet(char[] array,
int offset,
int length,
CharStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
CharLinkedOpenCustomHashSet(char[] array,
int offset,
int length,
float loadFactor,
CharStrategy strategy)
Helper constructor that allow to create a set from unboxed values
|
CharLinkedOpenCustomHashSet(CharCollection collection,
CharStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
CharLinkedOpenCustomHashSet(CharCollection collection,
float loadFactor,
CharStrategy strategy)
A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
CharLinkedOpenCustomHashSet(CharIterator iterator,
CharStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
CharLinkedOpenCustomHashSet(CharIterator iterator,
float loadFactor,
CharStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
CharLinkedOpenCustomHashSet(CharStrategy strategy)
Default Contstructor
|
CharLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Character> collection,
CharStrategy strategy)
Deprecated.
|
CharLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Character> collection,
float loadFactor,
CharStrategy strategy)
Deprecated.
|
CharLinkedOpenCustomHashSet(int minCapacity,
CharStrategy strategy)
Constructor that defines the minimum capacity
|
CharLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
CharStrategy strategy)
Constructor that defines the minimum capacity and load factor
|
CharLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Character> iterator,
CharStrategy strategy)
A Helper constructor that allows to create a set from a iterator of an unknown size
|
CharLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Character> iterator,
float loadFactor,
CharStrategy 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(char o)
A customized add method that allows you to insert into the first index.
|
boolean |
addAndMoveToLast(char 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
|
CharComparator |
comparator()
A Type Specific Comparator method
|
char |
firstChar()
A method to get the first element in the set
|
CharSortedSet |
headSet(char toElement)
A Type Specific HeadSet method to reduce boxing/unboxing
|
CharListIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
CharBidirectionalIterator |
iterator(char fromElement)
A type Specific Iterator starting from a given key
|
char |
lastChar()
A method to get the last element in the set
|
boolean |
moveToFirst(char o)
A specific move method to move a given key to the first index.
|
boolean |
moveToLast(char o)
A specific move method to move a given key to the last index.
|
char |
pollFirstChar()
A method to get and remove the first element in the set
|
char |
pollLastChar()
A method to get and remove the last element in the set
|
CharSortedSet |
subSet(char fromElement,
char toElement)
A Type Specific SubSet method to reduce boxing/unboxing
|
CharSortedSet |
tailSet(char fromElement)
A Type Specific TailSet method to reduce boxing/unboxing
|
add, addAll, addAll, contains, getStrategy, remove, size, trimequals, hashCodeadd, contains, containsAll, containsAny, containsAny, remChar, remove, removeAll, retainAll, toCharArray, toCharArraycontainsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringfirst, headSet, last, spliterator, subSet, tailSetadd, contains, remChar, remove, removeadd, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remIf, removeAll, removeIf, retainAll, toCharArray, toCharArrayforEach, forEachaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArrayclearAndTrim, trimpublic CharLinkedOpenCustomHashSet(CharStrategy strategy)
strategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic CharLinkedOpenCustomHashSet(int minCapacity,
CharStrategy 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 CharLinkedOpenCustomHashSet(int minCapacity,
float loadFactor,
CharStrategy 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 CharLinkedOpenCustomHashSet(char[] array,
CharStrategy strategy)
array - the elements that should be put into the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic CharLinkedOpenCustomHashSet(char[] array,
float loadFactor,
CharStrategy 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 CharLinkedOpenCustomHashSet(char[] array,
int offset,
int length,
CharStrategy 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 CharLinkedOpenCustomHashSet(char[] array,
int offset,
int length,
float loadFactor,
CharStrategy 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 CharLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Character> collection,
CharStrategy 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 CharLinkedOpenCustomHashSet(java.util.Collection<? extends java.lang.Character> collection,
float loadFactor,
CharStrategy 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 CharLinkedOpenCustomHashSet(CharCollection collection, CharStrategy 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 CharLinkedOpenCustomHashSet(CharCollection collection, float loadFactor, CharStrategy 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 CharLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Character> iterator,
CharStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic CharLinkedOpenCustomHashSet(java.util.Iterator<java.lang.Character> iterator,
float loadFactor,
CharStrategy 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 CharLinkedOpenCustomHashSet(CharIterator iterator, CharStrategy strategy)
iterator - the elements that should be added to the setstrategy - the strategy that allows hash control.java.lang.NullPointerException - if Strategy is nullpublic CharLinkedOpenCustomHashSet(CharIterator iterator, float loadFactor, CharStrategy 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(char o)
CharSortedSetaddAndMoveToFirst in interface CharSortedSeto - the element that should be insertedSet.add(Object)public boolean addAndMoveToLast(char o)
CharSortedSetaddAndMoveToLast in interface CharSortedSeto - the element that should be insertedSet.add(Object)public boolean moveToFirst(char o)
CharSortedSetmoveToFirst in interface CharSortedSeto - that should be moved to the first indexpublic boolean moveToLast(char o)
CharSortedSetmoveToLast in interface CharSortedSeto - that should be moved to the first lastpublic char firstChar()
CharSortedSetfirstChar in interface CharSortedSetpublic char pollFirstChar()
CharSortedSetpollFirstChar in interface CharSortedSetpublic char lastChar()
CharSortedSetlastChar in interface CharSortedSetpublic char pollLastChar()
CharSortedSetpollLastChar in interface CharSortedSetpublic void clear()
clear in interface java.util.Collection<java.lang.Character>clear in interface java.util.Set<java.lang.Character>clear in class CharOpenCustomHashSetpublic void clearAndTrim(int size)
ITrimmableclearAndTrim in interface ITrimmableclearAndTrim in class CharOpenCustomHashSetsize - the amount of elements that should be allowedpublic CharListIterator iterator()
CharCollectioniterator in interface java.lang.Iterable<java.lang.Character>iterator in interface java.util.Collection<java.lang.Character>iterator in interface java.util.Set<java.lang.Character>iterator in interface CharCollectioniterator in interface CharIterableiterator in interface CharSetiterator in interface CharSortedSetiterator in class CharOpenCustomHashSetCollection.iterator()public CharBidirectionalIterator iterator(char fromElement)
CharSortedSetiterator in interface CharSortedSetfromElement - the element the iterator should start frompublic CharComparator comparator()
CharSortedSetcomparator in interface java.util.SortedSet<java.lang.Character>comparator in interface CharSortedSetpublic CharSortedSet subSet(char fromElement, char toElement)
CharSortedSetsubSet in interface CharSortedSetfromElement - where the SubSet should starttoElement - where the SubSet should endpublic CharSortedSet headSet(char toElement)
CharSortedSetheadSet in interface CharSortedSettoElement - where the HeadSet should endpublic CharSortedSet tailSet(char fromElement)
CharSortedSettailSet in interface CharSortedSetfromElement - where the TailSet should start