Class ByteSortedSets.UnmodifiableSortedSet
- All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.ByteBidirectionalIterable,it.unimi.dsi.fastutil.bytes.ByteCollection,it.unimi.dsi.fastutil.bytes.ByteIterable,ByteSet,ByteSortedSet,Serializable,Iterable<Byte>,Collection<Byte>,SequencedCollection<Byte>,SequencedSet<Byte>,Set<Byte>,SortedSet<Byte>
- Enclosing class:
ByteSortedSets
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.bytes.ByteCollectionprotected final ByteSortedSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(byte arg0) booleanDeprecated.booleanaddAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) booleanaddAll(Collection<? extends Byte> arg0) voidclear()it.unimi.dsi.fastutil.bytes.ByteComparatorbooleancontains(byte arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) booleancontainsAll(Collection<?> arg0) first()Deprecated.Please use the corresponding type-specific method instead.byteReturns the first (lowest) element currently in this set.voidforEach(it.unimi.dsi.fastutil.bytes.ByteConsumer arg0) headSet(byte 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.bytes.ByteBidirectionalIteratoriterator()Returns a type-specificBidirectionalIteratoron the elements in this set.it.unimi.dsi.fastutil.bytes.ByteBidirectionalIteratoriterator(byte 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.bytelastByte()Returns the last (highest) element currently in this set.Deprecated.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) booleanremoveAll(Collection<?> arg0) booleanremoveIf(it.unimi.dsi.fastutil.bytes.BytePredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) booleanretainAll(Collection<?> arg0) intsize()it.unimi.dsi.fastutil.bytes.ByteSpliteratorstream()Deprecated.subSet(byte from, byte 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(byte 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()byte[]toArray(byte[] arg0) <T> T[]toArray(T[] arg0) byte[]byte[]toByteArray(byte[] arg0) Deprecated.toString()Methods inherited from class it.unimi.dsi.fastutil.bytes.ByteSets.UnmodifiableSet
equals, hashCode, rem, removeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteCollection
add, addAll, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toByteArray, toByteArrayMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteIterable
forEach, forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteSet
add, contains, rem, remove, removeMethods inherited from interface it.unimi.dsi.fastutil.bytes.ByteSortedSet
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.bytes.ByteCollection collection
-
-
Constructor Details
-
UnmodifiableSortedSet
-
-
Method Details
-
comparator
public it.unimi.dsi.fastutil.bytes.ByteComparator comparator()Description copied from interface:ByteSortedSet- Specified by:
comparatorin interfaceByteSortedSet- Specified by:
comparatorin interfaceSortedSet<Byte>
-
subSet
Description copied from interface:ByteSortedSetReturns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.- Specified by:
subSetin interfaceByteSortedSet- See Also:
-
headSet
Description copied from interface:ByteSortedSetReturns a view of the portion of this sorted set whose elements are strictly less thantoElement.- Specified by:
headSetin interfaceByteSortedSet- See Also:
-
tailSet
Description copied from interface:ByteSortedSetReturns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.- Specified by:
tailSetin interfaceByteSortedSet- See Also:
-
iterator
public it.unimi.dsi.fastutil.bytes.ByteBidirectionalIterator iterator()Description copied from interface:ByteSortedSetReturns 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.bytes.ByteBidirectionalIterable- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable- Specified by:
iteratorin interfaceByteSet- Specified by:
iteratorin interfaceByteSortedSet- Specified by:
iteratorin interfaceCollection<Byte>- Specified by:
iteratorin interfaceIterable<Byte>- Specified by:
iteratorin interfaceSet<Byte>- Returns:
- a bidirectional iterator on the element in this set.
-
iterator
public it.unimi.dsi.fastutil.bytes.ByteBidirectionalIterator iterator(byte from) Description copied from interface:ByteSortedSetReturns 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 interfaceByteSortedSet- Parameters:
from- an element to start from.- Returns:
- a bidirectional iterator on the element in this set, starting at the given element.
-
firstByte
public byte firstByte()Description copied from interface:ByteSortedSetReturns the first (lowest) element currently in this set.- Specified by:
firstBytein interfaceByteSortedSet- See Also:
-
lastByte
public byte lastByte()Description copied from interface:ByteSortedSetReturns the last (highest) element currently in this set.- Specified by:
lastBytein interfaceByteSortedSet- See Also:
-
first
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstin interfaceByteSortedSet- Specified by:
firstin interfaceSortedSet<Byte>
-
last
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastin interfaceByteSortedSet- Specified by:
lastin interfaceSortedSet<Byte>
-
subSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
subSetin interfaceByteSortedSet- Specified by:
subSetin interfaceSortedSet<Byte>
-
headSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
headSetin interfaceByteSortedSet- Specified by:
headSetin interfaceSortedSet<Byte>
-
tailSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
tailSetin interfaceByteSortedSet- Specified by:
tailSetin interfaceSortedSet<Byte>
-
add
public boolean add(byte arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Byte>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Byte>
-
contains
public boolean contains(byte arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
spliterator
public it.unimi.dsi.fastutil.bytes.ByteSpliterator spliterator()- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable- Specified by:
spliteratorin interfaceCollection<Byte>- Specified by:
spliteratorin interfaceIterable<Byte>
-
stream
Deprecated.- Specified by:
streamin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
streamin interfaceCollection<Byte>
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
parallelStreamin interfaceCollection<Byte>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Byte>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Byte>
-
toArray
- Specified by:
toArrayin interfaceCollection<Byte>
-
forEach
public void forEach(it.unimi.dsi.fastutil.bytes.ByteConsumer arg0) - Specified by:
forEachin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable
-
containsAll
- Specified by:
containsAllin interfaceCollection<Byte>
-
addAll
- Specified by:
addAllin interfaceCollection<Byte>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Byte>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Byte>
-
removeIf
public boolean removeIf(it.unimi.dsi.fastutil.bytes.BytePredicate arg0) - Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
add
Deprecated.- Specified by:
addin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
addin interfaceCollection<Byte>
-
contains
Deprecated.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
containsin interfaceCollection<Byte>
-
remove
Deprecated.- Specified by:
removein interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
removein interfaceCollection<Byte>
-
toByteArray
public byte[] toByteArray()- Specified by:
toByteArrayin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
toByteArray
Deprecated.- Specified by:
toByteArrayin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
toArray
public byte[] toArray(byte[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.bytes.ByteCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
intIterator
public it.unimi.dsi.fastutil.ints.IntIterator intIterator()- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable
-
intSpliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.bytes.ByteIterable
-
intStream
- Specified by:
intStreamin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
intParallelStream
- Specified by:
intParallelStreamin interfaceit.unimi.dsi.fastutil.bytes.ByteCollection
-
toString
-