Class IntSortedSets.UnmodifiableSortedSet
- All Implemented Interfaces:
it.unimi.dsi.fastutil.ints.IntBidirectionalIterable,it.unimi.dsi.fastutil.ints.IntCollection,it.unimi.dsi.fastutil.ints.IntIterable,IntSet,IntSortedSet,Serializable,Iterable<Integer>,Collection<Integer>,SequencedCollection<Integer>,SequencedSet<Integer>,Set<Integer>,SortedSet<Integer>
- Enclosing class:
IntSortedSets
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.ints.IntCollectionprotected final IntSortedSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(int arg0) booleanDeprecated.booleanaddAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) booleanaddAll(Collection<? extends Integer> arg0) voidclear()it.unimi.dsi.fastutil.ints.IntComparatorbooleancontains(int arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) booleancontainsAll(Collection<?> arg0) first()Deprecated.Please use the corresponding type-specific method instead.intfirstInt()Returns the first (lowest) element currently in this set.voidforEach(IntConsumer arg0) headSet(int 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.ints.IntBidirectionalIteratoriterator()Returns a type-specificBidirectionalIteratoron the elements in this set.it.unimi.dsi.fastutil.ints.IntBidirectionalIteratoriterator(int 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.intlastInt()Returns the last (highest) element currently in this set.Deprecated.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) booleanremoveAll(Collection<?> arg0) booleanremoveIf(IntPredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) booleanretainAll(Collection<?> arg0) intsize()it.unimi.dsi.fastutil.ints.IntSpliteratorstream()Deprecated.subSet(int from, int 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(int 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()int[]toArray(int[] arg0) <T> T[]toArray(T[] arg0) int[]int[]toIntArray(int[] arg0) Deprecated.toString()Methods inherited from class it.unimi.dsi.fastutil.ints.IntSets.UnmodifiableSet
equals, hashCode, rem, removeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
toArrayMethods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection
add, addAll, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toIntArray, toIntArrayMethods inherited from interface it.unimi.dsi.fastutil.ints.IntIterable
forEach, forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.ints.IntSet
add, contains, rem, remove, removeMethods inherited from interface it.unimi.dsi.fastutil.ints.IntSortedSet
spliteratorMethods 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.ints.IntCollection collection
-
-
Constructor Details
-
UnmodifiableSortedSet
-
-
Method Details
-
comparator
public it.unimi.dsi.fastutil.ints.IntComparator comparator()Description copied from interface:IntSortedSet- Specified by:
comparatorin interfaceIntSortedSet- Specified by:
comparatorin interfaceSortedSet<Integer>
-
subSet
Description copied from interface:IntSortedSetReturns a view of the portion of this sorted set whose elements range fromfromElement, inclusive, totoElement, exclusive.- Specified by:
subSetin interfaceIntSortedSet- See Also:
-
headSet
Description copied from interface:IntSortedSetReturns a view of the portion of this sorted set whose elements are strictly less thantoElement.- Specified by:
headSetin interfaceIntSortedSet- See Also:
-
tailSet
Description copied from interface:IntSortedSetReturns a view of the portion of this sorted set whose elements are greater than or equal tofromElement.- Specified by:
tailSetin interfaceIntSortedSet- See Also:
-
iterator
public it.unimi.dsi.fastutil.ints.IntBidirectionalIterator iterator()Description copied from interface:IntSortedSetReturns 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 interfaceCollection<Integer>- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.ints.IntBidirectionalIterable- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.ints.IntCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.ints.IntIterable- Specified by:
iteratorin interfaceIntSet- Specified by:
iteratorin interfaceIntSortedSet- Specified by:
iteratorin interfaceIterable<Integer>- Specified by:
iteratorin interfaceSet<Integer>- Returns:
- a bidirectional iterator on the element in this set.
-
iterator
public it.unimi.dsi.fastutil.ints.IntBidirectionalIterator iterator(int from) Description copied from interface:IntSortedSetReturns 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 interfaceIntSortedSet- Parameters:
from- an element to start from.- Returns:
- a bidirectional iterator on the element in this set, starting at the given element.
-
firstInt
public int firstInt()Description copied from interface:IntSortedSetReturns the first (lowest) element currently in this set.- Specified by:
firstIntin interfaceIntSortedSet- See Also:
-
lastInt
public int lastInt()Description copied from interface:IntSortedSetReturns the last (highest) element currently in this set.- Specified by:
lastIntin interfaceIntSortedSet- See Also:
-
first
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
firstin interfaceIntSortedSet- Specified by:
firstin interfaceSortedSet<Integer>
-
last
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastin interfaceIntSortedSet- Specified by:
lastin interfaceSortedSet<Integer>
-
subSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
subSetin interfaceIntSortedSet- Specified by:
subSetin interfaceSortedSet<Integer>
-
headSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
headSetin interfaceIntSortedSet- Specified by:
headSetin interfaceSortedSet<Integer>
-
tailSet
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
tailSetin interfaceIntSortedSet- Specified by:
tailSetin interfaceSortedSet<Integer>
-
add
public boolean add(int arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Integer>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Integer>
-
contains
public boolean contains(int arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
spliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator spliterator()- Specified by:
spliteratorin interfaceCollection<Integer>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.ints.IntCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.ints.IntIterable- Specified by:
spliteratorin interfaceIterable<Integer>
-
stream
Deprecated.- Specified by:
streamin interfaceCollection<Integer>- Specified by:
streamin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceCollection<Integer>- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Integer>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Integer>
-
toArray
- Specified by:
toArrayin interfaceCollection<Integer>
-
forEach
- Specified by:
forEachin interfaceit.unimi.dsi.fastutil.ints.IntIterable
-
containsAll
- Specified by:
containsAllin interfaceCollection<Integer>
-
addAll
- Specified by:
addAllin interfaceCollection<Integer>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Integer>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Integer>
-
removeIf
- Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
add
Deprecated.- Specified by:
addin interfaceCollection<Integer>- Specified by:
addin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
contains
Deprecated.- Specified by:
containsin interfaceCollection<Integer>- Specified by:
containsin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
remove
Deprecated.- Specified by:
removein interfaceCollection<Integer>- Specified by:
removein interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
toIntArray
public int[] toIntArray()- Specified by:
toIntArrayin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
toIntArray
Deprecated.- Specified by:
toIntArrayin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
toArray
public int[] toArray(int[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.ints.IntCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
intIterator
public it.unimi.dsi.fastutil.ints.IntIterator intIterator()- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.ints.IntCollection- Specified by:
intIteratorin interfaceit.unimi.dsi.fastutil.ints.IntIterable
-
intSpliterator
public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.ints.IntCollection- Specified by:
intSpliteratorin interfaceit.unimi.dsi.fastutil.ints.IntIterable
-
intStream
- Specified by:
intStreamin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
intParallelStream
- Specified by:
intParallelStreamin interfaceit.unimi.dsi.fastutil.ints.IntCollection
-
toString
-