Package com.google.common.collect
Class TreeRangeSet.SubRangeSetRangesByLowerBound<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.SubRangeSetRangesByLowerBound<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<?>>
private static final class TreeRangeSet.SubRangeSetRangesByLowerBound<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 TypeFieldDescriptionlowerBoundWindow is the headMap/subMap/tailMap view; it only restricts the keys, and does not affect the values.private final NavigableMap
<Cut<C>, Range<C>> private final NavigableMap
<Cut<C>, Range<C>> restriction is the subRangeSet view; ranges are truncated to their intersection with restriction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComparator
<? super Cut<C>> boolean
containsKey
(Object key) NavigableMap
<Cut<C>, Range<C>> 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, isEmpty, 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, isEmpty, 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
-
lowerBoundWindow
lowerBoundWindow is the headMap/subMap/tailMap view; it only restricts the keys, and does not affect the values. -
restriction
restriction is the subRangeSet view; ranges are truncated to their intersection with restriction. -
rangesByLowerBound
private final NavigableMap<Cut<C extends Comparable<?>>,Range<C extends Comparable<?>>> rangesByLowerBound -
rangesByUpperBound
private final NavigableMap<Cut<C extends Comparable<?>>,Range<C extends Comparable<?>>> rangesByUpperBound
-
-
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<?>>>
-