Package com.google.common.collect
Class TreeRangeSet.RangesByUpperBound<C extends Comparable<?>>
java.lang.Object
java.util.AbstractMap<Cut<C>,Range<C>>
com.google.common.collect.Maps.IteratorBasedAbstractMap<Cut<C>,Range<C>>
com.google.common.collect.AbstractNavigableMap<Cut<C>,Range<C>>
com.google.common.collect.TreeRangeSet.RangesByUpperBound<C>
- All Implemented Interfaces:
Map<Cut<C>,
,Range<C>> NavigableMap<Cut<C>,
,Range<C>> SequencedMap<Cut<C>,
,Range<C>> SortedMap<Cut<C>,
Range<C>>
- Enclosing class:
TreeRangeSet<C extends Comparable<?>>
static final class TreeRangeSet.RangesByUpperBound<C extends Comparable<?>>
extends AbstractNavigableMap<Cut<C>,Range<C>>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NavigableMap
<Cut<C>, Range<C>> upperBoundWindow represents the headMap/subMap/tailMap view of the entire "ranges by upper bound" map; it's a constraint on the *keys*, and does not affect the values. -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
RangesByUpperBound
(NavigableMap<Cut<C>, Range<C>> rangesByLowerBound) private
RangesByUpperBound
(NavigableMap<Cut<C>, Range<C>> rangesByLowerBound, Range<Cut<C>> upperBoundWindow) -
Method Summary
Modifier and TypeMethodDescriptionComparator
<? super Cut<C>> boolean
containsKey
(Object key) NavigableMap
<Cut<C>, Range<C>> boolean
isEmpty()
int
size()
NavigableMap
<Cut<C>, Range<C>> private NavigableMap
<Cut<C>, Range<C>> NavigableMap
<Cut<C>, Range<C>> Methods inherited from class com.google.common.collect.AbstractNavigableMap
ceilingEntry, ceilingKey, descendingKeySet, descendingMap, firstEntry, firstKey, floorEntry, floorKey, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, subMap, tailMap
Methods inherited from class com.google.common.collect.Maps.IteratorBasedAbstractMap
clear, entrySet, entrySpliterator, forEachEntry
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, put, putAll, remove, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
Methods inherited from interface java.util.NavigableMap
reversed
Methods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Field Details
-
rangesByLowerBound
private final NavigableMap<Cut<C extends Comparable<?>>,Range<C extends Comparable<?>>> rangesByLowerBound -
upperBoundWindow
upperBoundWindow represents the headMap/subMap/tailMap view of the entire "ranges by upper bound" map; it's a constraint on the *keys*, and does not affect the values.
-
-
Constructor Details
-
Method Details
-
subMap
-
subMap
-
headMap
-
tailMap
-
comparator
-
containsKey
- Specified by:
containsKey
in interfaceMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>> - Overrides:
containsKey
in classAbstractMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>>
-
get
- Specified by:
get
in interfaceMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>> - Specified by:
get
in classAbstractNavigableMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>>
-
entryIterator
- Specified by:
entryIterator
in classMaps.IteratorBasedAbstractMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>>
-
descendingEntryIterator
- Specified by:
descendingEntryIterator
in classAbstractNavigableMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>>
-
size
public int size()- Specified by:
size
in interfaceMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>> - Specified by:
size
in classMaps.IteratorBasedAbstractMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>> - Overrides:
isEmpty
in classAbstractMap<Cut<C extends Comparable<?>>,
Range<C extends Comparable<?>>>
-