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