Class CharSortedSets.EmptySet
- All Implemented Interfaces:
CharBidirectionalIterable,CharCollection,CharIterable,CharSet,CharSortedSet,Serializable,Cloneable,Iterable<Character>,Collection<Character>,Set<Character>,SortedSet<Character>
- Enclosing class:
- CharSortedSets
public static class CharSortedSets.EmptySet extends CharSets.EmptySet implements CharSortedSet, Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific sorted set.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description Objectclone()CharComparatorcomparator()Characterfirst()Deprecated.Please use the corresponding type-specific method instead.charfirstChar()Returns the first (lowest) element currently in this set.CharSortedSetheadSet(char from)Returns a view of the portion of this sorted set whose elements are strictly less thantoElement.CharSortedSetheadSet(Character from)Deprecated.Please use the corresponding type-specific method instead.CharBidirectionalIteratoriterator(char from)Returns a type-specificBidirectionalIteratoron the elements in this set, starting from a given element of the domain (optional operation).Characterlast()Deprecated.Please use the corresponding type-specific method instead.charlastChar()Returns the last (highest) element currently in this set.CharSortedSetsubSet(char from, char to)Returns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.CharSortedSetsubSet(Character from, Character to)Deprecated.Please use the corresponding type-specific method instead.CharSortedSettailSet(char to)Returns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.CharSortedSettailSet(Character to)Deprecated.Please use the corresponding type-specific method instead.Methods inherited from class it.unimi.dsi.fastutil.chars.CharCollections.EmptyCollection
addAll, addAll, clear, contains, hashCode, iterator, removeAll, removeAll, retainAll, retainAll, size, toArrayMethods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharCollection
add, add, contains, containsAll, remove, toArray, toCharArray, toCharArray, toStringMethods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
add, addAll, contains, containsAll, removeAll, removeIf, removeIf, retainAll, toArray, toCharArray, toCharArrayMethods inherited from interface it.unimi.dsi.fastutil.chars.CharSet
add, contains, rem, remove, remove
-
Method Details
-
iterator
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.
-
subSet
Description copied from interface:CharSortedSetReturns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.Note that this specification strengthens the one given in
SortedSet.subSet(Object,Object).- Specified by:
subSetin interfaceCharSortedSet- See Also:
SortedSet.subSet(Object,Object)
-
headSet
Description copied from interface:CharSortedSetReturns a view of the portion of this sorted set whose elements are strictly less thantoElement.Note that this specification strengthens the one given in
SortedSet.headSet(Object).- Specified by:
headSetin interfaceCharSortedSet- See Also:
SortedSet.headSet(Object)
-
tailSet
Description copied from interface:CharSortedSetReturns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.Note that this specification strengthens the one given in
SortedSet.headSet(Object).- Specified by:
tailSetin interfaceCharSortedSet- See Also:
SortedSet.tailSet(Object)
-
firstChar
public char firstChar()Description copied from interface:CharSortedSetReturns the first (lowest) element currently in this set.- Specified by:
firstCharin interfaceCharSortedSet- See Also:
SortedSet.first()
-
lastChar
public char lastChar()Description copied from interface:CharSortedSetReturns the last (highest) element currently in this set.- Specified by:
lastCharin interfaceCharSortedSet- See Also:
SortedSet.last()
-
comparator
Description copied from interface:CharSortedSetNote that this specification strengthens the one given in
SortedSet.comparator().- Specified by:
comparatorin interfaceCharSortedSet- Specified by:
comparatorin 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>
-
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>
-
clone
- Overrides:
clonein classCharSets.EmptySet
-