Class CharSortedSets.SynchronizedSortedSet
- All Implemented Interfaces:
it.unimi.dsi.fastutil.chars.CharBidirectionalIterable,it.unimi.dsi.fastutil.chars.CharCollection,it.unimi.dsi.fastutil.chars.CharIterable,CharSet,CharSortedSet,Serializable,Iterable<Character>,Collection<Character>,SequencedCollection<Character>,SequencedSet<Character>,Set<Character>,SortedSet<Character>
- Enclosing class:
CharSortedSets
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.chars.CharCollectionprotected final CharSortedSetprotected final Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSynchronizedSortedSet(CharSortedSet s, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(char arg0) booleanDeprecated.booleanaddAll(it.unimi.dsi.fastutil.chars.CharCollection arg0) booleanaddAll(Collection<? extends Character> arg0) voidclear()it.unimi.dsi.fastutil.chars.CharComparatorbooleancontains(char arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.chars.CharCollection arg0) booleancontainsAll(Collection<?> arg0) booleanfirst()Deprecated.Please use the corresponding type-specific method instead.charReturns the first (lowest) element currently in this set.voidforEach(it.unimi.dsi.fastutil.chars.CharConsumer arg0) inthashCode()headSet(char to) Returns a view of the portion of this sorted set whose elements are strictly less thantoElement.Deprecated.Please use the corresponding type-specific method instead.it.unimi.dsi.fastutil.ints.IntIteratorit.unimi.dsi.fastutil.ints.IntSpliteratorbooleanisEmpty()it.unimi.dsi.fastutil.chars.CharBidirectionalIteratoriterator()Returns a type-specificBidirectionalIteratoron the elements in this set.it.unimi.dsi.fastutil.chars.CharBidirectionalIteratoriterator(char from) Returns a type-specificBidirectionalIteratoron the elements in this set, starting from a given element of the domain (optional operation).last()Deprecated.Please use the corresponding type-specific method instead.charlastChar()Returns the last (highest) element currently in this set.Deprecated.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.chars.CharCollection arg0) booleanremoveAll(Collection<?> arg0) booleanremoveIf(it.unimi.dsi.fastutil.chars.CharPredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.chars.CharCollection arg0) booleanretainAll(Collection<?> arg0) intsize()it.unimi.dsi.fastutil.chars.CharSpliteratorstream()Deprecated.subSet(char from, char to) Returns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.Deprecated.Please use the corresponding type-specific method instead.tailSet(char from) Returns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.Deprecated.Please use the corresponding type-specific method instead.Object[]toArray()char[]toArray(char[] arg0) <T> T[]toArray(T[] arg0) char[]char[]toCharArray(char[] arg0) Deprecated.toString()Methods inherited from class it.unimi.dsi.fastutil.chars.CharSets.SynchronizedSet
rem, removeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
add, addAll, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toCharArray, toCharArrayMethods inherited from interface it.unimi.dsi.fastutil.chars.CharIterable
forEach, forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.chars.CharSet
add, contains, rem, remove, removeMethods inherited from interface it.unimi.dsi.fastutil.chars.CharSortedSet
spliteratorMethods inherited from interface java.util.Collection
toArrayMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface java.util.SortedSet
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
Field Details
-
sortedSet
-
collection
protected final it.unimi.dsi.fastutil.chars.CharCollection collection -
sync
-
-
Constructor Details
-
SynchronizedSortedSet
-
SynchronizedSortedSet
-
-
Method Details
-
comparator
public it.unimi.dsi.fastutil.chars.CharComparator comparator()Description copied from interface:CharSortedSet- Specified by:
comparatorin interfaceCharSortedSet- Specified by:
comparatorin interfaceSortedSet<Character>
-
subSet
Description copied from interface:CharSortedSetReturns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.- Specified by:
subSetin interfaceCharSortedSet- See Also:
-
headSet
Description copied from interface:CharSortedSetReturns a view of the portion of this sorted set whose elements are strictly less thantoElement.- Specified by:
headSetin interfaceCharSortedSet- See Also:
-
tailSet
Description copied from interface:CharSortedSetReturns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.- Specified by:
tailSetin interfaceCharSortedSet- See Also:
-
iterator
public it.unimi.dsi.fastutil.chars.CharBidirectionalIterator iterator()Description copied from interface:CharSortedSetReturns a type-specificBidirectionalIteratoron the elements in this set.This method returns a parameterised bidirectional iterator. The iterator can be moreover safely cast to a type-specific iterator.
- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.chars.CharBidirectionalIterable- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.chars.CharIterable- Specified by:
iteratorin interfaceCharSet- Specified by:
iteratorin interfaceCharSortedSet- Specified by:
iteratorin interfaceCollection<Character>- Specified by:
iteratorin interfaceIterable<Character>- Specified by:
iteratorin interfaceSet<Character>- Returns:
- a bidirectional iterator on the element in this set.
-
iterator
public it.unimi.dsi.fastutil.chars.CharBidirectionalIterator iterator(char from) Description copied from interface:CharSortedSetReturns a type-specificBidirectionalIteratoron the elements in this set, starting from a given element of the domain (optional operation).This method returns a type-specific bidirectional iterator with given starting point. The starting point is any element comparable to the elements of this set (even if it does not actually belong to the set). The next element of the returned iterator is the least element of the set that is greater than the starting point (if there are no elements greater than the starting point,
hasNext()will returnfalse). The previous element of the returned iterator is the greatest element of the set that is smaller than or equal to the starting point (if there are no elements smaller than or equal to the starting point,hasPrevious()will returnfalse).Note that passing the last element of the set as starting point and calling
previous()you can traverse the entire set in reverse order.- Specified by:
iteratorin interfaceCharSortedSet- Parameters:
from- an element to start from.- Returns:
- a bidirectional iterator on the element in this set, starting at the given element.
-
firstChar
public char firstChar()Description copied from interface:CharSortedSetReturns the first (lowest) element currently in this set.- Specified by:
firstCharin interfaceCharSortedSet- See Also:
-
lastChar
public char lastChar()Description copied from interface:CharSortedSetReturns the last (highest) element currently in this set.- Specified by:
lastCharin interfaceCharSortedSet- See Also:
-
first
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstin interfaceCharSortedSet- Specified by:
firstin interfaceSortedSet<Character>
-
last
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastin interfaceCharSortedSet- Specified by:
lastin interfaceSortedSet<Character>
-
subSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
subSetin interfaceCharSortedSet- Specified by:
subSetin interfaceSortedSet<Character>
-
headSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
headSetin interfaceCharSortedSet- Specified by:
headSetin interfaceSortedSet<Character>
-
tailSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
tailSetin interfaceCharSortedSet- Specified by:
tailSetin interfaceSortedSet<Character>
-
add
public boolean add(char arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
contains
public boolean contains(char arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Character>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Character>
-
toCharArray
public char[] toCharArray()- Specified by:
toCharArrayin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
toArray
- Specified by:
toArrayin interfaceCollection<Character>
-
toCharArray
Deprecated.- Specified by:
toCharArrayin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
toArray
public char[] toArray(char[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.chars.CharCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.chars.CharCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.chars.CharCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.chars.CharCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
add
Deprecated.- Specified by:
addin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
addin interfaceCollection<Character>
-
contains
Deprecated.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
containsin interfaceCollection<Character>
-
remove
Deprecated.- Specified by:
removein interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
removein interfaceCollection<Character>
-
intIterator
public it.unimi.dsi.fastutil.ints.IntIterator intIterator()- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.chars.CharIterable
-
intSpliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.chars.CharIterable
-
intStream
- Specified by:
intStreamin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
intParallelStream
- Specified by:
intParallelStreamin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Character>
-
spliterator
public it.unimi.dsi.fastutil.chars.CharSpliterator spliterator()- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.chars.CharIterable- Specified by:
spliteratorin interfaceCollection<Character>- Specified by:
spliteratorin interfaceIterable<Character>
-
stream
Deprecated.- Specified by:
streamin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
streamin interfaceCollection<Character>
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.chars.CharCollection- Specified by:
parallelStreamin interfaceCollection<Character>
-
forEach
public void forEach(it.unimi.dsi.fastutil.chars.CharConsumer arg0) - Specified by:
forEachin interfaceit.unimi.dsi.fastutil.chars.CharIterable
-
addAll
- Specified by:
addAllin interfaceCollection<Character>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Character>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Character>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Character>
-
removeIf
public boolean removeIf(it.unimi.dsi.fastutil.chars.CharPredicate arg0) - Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.chars.CharCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Character>
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Character>- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceCollection<Character>- Overrides:
equalsin classObject
-