Class SplayMap.SplayMapKeySet
- All Implemented Interfaces:
Iterable<UnsignedInteger>
,Collection<UnsignedInteger>
,NavigableSet<UnsignedInteger>
,Set<UnsignedInteger>
,SortedSet<UnsignedInteger>
protected class SplayMap.SplayMapKeySet
extends AbstractSet<UnsignedInteger>
implements NavigableSet<UnsignedInteger>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionceiling
(UnsignedInteger key) void
clear()
Comparator
<? super UnsignedInteger> boolean
first()
floor
(UnsignedInteger key) headSet
(UnsignedInteger toElement) headSet
(UnsignedInteger toElement, boolean inclusive) higher
(UnsignedInteger key) boolean
isEmpty()
iterator()
last()
lower
(UnsignedInteger key) pollLast()
boolean
boolean
retainAll
(Collection<?> c) int
size()
subSet
(UnsignedInteger fromElement, boolean fromInclusive, UnsignedInteger toElement, boolean toInclusive) subSet
(UnsignedInteger fromElement, UnsignedInteger toElement) tailSet
(UnsignedInteger fromElement) tailSet
(UnsignedInteger fromElement, boolean inclusive) Object[]
toArray()
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
add, addAll, containsAll, equals, hashCode, removeAll, toArray
Methods inherited from interface java.util.SortedSet
spliterator
-
Constructor Details
-
SplayMapKeySet
protected SplayMapKeySet()
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceCollection<UnsignedInteger>
- Specified by:
iterator
in interfaceIterable<UnsignedInteger>
- Specified by:
iterator
in interfaceNavigableSet<UnsignedInteger>
- Specified by:
iterator
in interfaceSet<UnsignedInteger>
- Specified by:
iterator
in classAbstractCollection<UnsignedInteger>
-
size
public int size()- Specified by:
size
in interfaceCollection<UnsignedInteger>
- Specified by:
size
in interfaceSet<UnsignedInteger>
- Specified by:
size
in classAbstractCollection<UnsignedInteger>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<UnsignedInteger>
- Specified by:
isEmpty
in interfaceSet<UnsignedInteger>
- Overrides:
isEmpty
in classAbstractCollection<UnsignedInteger>
-
contains
- Specified by:
contains
in interfaceCollection<UnsignedInteger>
- Specified by:
contains
in interfaceSet<UnsignedInteger>
- Overrides:
contains
in classAbstractCollection<UnsignedInteger>
-
remove
- Specified by:
remove
in interfaceCollection<UnsignedInteger>
- Specified by:
remove
in interfaceSet<UnsignedInteger>
- Overrides:
remove
in classAbstractCollection<UnsignedInteger>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<UnsignedInteger>
- Specified by:
retainAll
in interfaceSet<UnsignedInteger>
- Overrides:
retainAll
in classAbstractCollection<UnsignedInteger>
-
toArray
- Specified by:
toArray
in interfaceCollection<UnsignedInteger>
- Specified by:
toArray
in interfaceSet<UnsignedInteger>
- Overrides:
toArray
in classAbstractCollection<UnsignedInteger>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<UnsignedInteger>
- Specified by:
clear
in interfaceSet<UnsignedInteger>
- Overrides:
clear
in classAbstractCollection<UnsignedInteger>
-
comparator
- Specified by:
comparator
in interfaceSortedSet<UnsignedInteger>
-
first
- Specified by:
first
in interfaceSortedSet<UnsignedInteger>
-
last
- Specified by:
last
in interfaceSortedSet<UnsignedInteger>
-
lower
- Specified by:
lower
in interfaceNavigableSet<UnsignedInteger>
-
floor
- Specified by:
floor
in interfaceNavigableSet<UnsignedInteger>
-
ceiling
- Specified by:
ceiling
in interfaceNavigableSet<UnsignedInteger>
-
higher
- Specified by:
higher
in interfaceNavigableSet<UnsignedInteger>
-
pollFirst
- Specified by:
pollFirst
in interfaceNavigableSet<UnsignedInteger>
-
pollLast
- Specified by:
pollLast
in interfaceNavigableSet<UnsignedInteger>
-
descendingSet
- Specified by:
descendingSet
in interfaceNavigableSet<UnsignedInteger>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceNavigableSet<UnsignedInteger>
-
subSet
public NavigableSet<UnsignedInteger> subSet(UnsignedInteger fromElement, boolean fromInclusive, UnsignedInteger toElement, boolean toInclusive) - Specified by:
subSet
in interfaceNavigableSet<UnsignedInteger>
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<UnsignedInteger>
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<UnsignedInteger>
-
subSet
- Specified by:
subSet
in interfaceNavigableSet<UnsignedInteger>
- Specified by:
subSet
in interfaceSortedSet<UnsignedInteger>
-
headSet
- Specified by:
headSet
in interfaceNavigableSet<UnsignedInteger>
- Specified by:
headSet
in interfaceSortedSet<UnsignedInteger>
-
tailSet
- Specified by:
tailSet
in interfaceNavigableSet<UnsignedInteger>
- Specified by:
tailSet
in interfaceSortedSet<UnsignedInteger>
-