Package com.google.common.collect
Class TreeRangeSet.SubRangeSetRangesByLowerBound<C extends java.lang.Comparable<?>>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- com.google.common.collect.Maps.IteratorBasedAbstractMap<K,V>
-
- com.google.common.collect.AbstractNavigableMap<Cut<C>,Range<C>>
-
- com.google.common.collect.TreeRangeSet.SubRangeSetRangesByLowerBound<C>
-
- All Implemented Interfaces:
java.util.Map<Cut<C>,Range<C>>,java.util.NavigableMap<Cut<C>,Range<C>>,java.util.SortedMap<Cut<C>,Range<C>>
- Enclosing class:
- TreeRangeSet<C extends java.lang.Comparable<?>>
private static final class TreeRangeSet.SubRangeSetRangesByLowerBound<C extends java.lang.Comparable<?>> extends AbstractNavigableMap<Cut<C>,Range<C>>
-
-
Field Summary
Fields Modifier and Type Field Description private Range<Cut<C>>lowerBoundWindowlowerBoundWindow is the headMap/subMap/tailMap view; it only restricts the keys, and does not affect the values.private java.util.NavigableMap<Cut<C>,Range<C>>rangesByLowerBoundprivate java.util.NavigableMap<Cut<C>,Range<C>>rangesByUpperBoundprivate Range<C>restrictionrestriction is the subRangeSet view; ranges are truncated to their intersection with restriction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<? super Cut<C>>comparator()booleancontainsKey(java.lang.Object key)(package private) java.util.Iterator<java.util.Map.Entry<Cut<C>,Range<C>>>descendingEntryIterator()(package private) java.util.Iterator<java.util.Map.Entry<Cut<C>,Range<C>>>entryIterator()Range<C>get(java.lang.Object key)java.util.NavigableMap<Cut<C>,Range<C>>headMap(Cut<C> toKey, boolean inclusive)intsize()java.util.NavigableMap<Cut<C>,Range<C>>subMap(Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive)private java.util.NavigableMap<Cut<C>,Range<C>>subMap(Range<Cut<C>> window)java.util.NavigableMap<Cut<C>,Range<C>>tailMap(Cut<C> fromKey, boolean inclusive)-
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
-
-
-
-
Field Detail
-
lowerBoundWindow
private final Range<Cut<C extends java.lang.Comparable<?>>> lowerBoundWindow
lowerBoundWindow is the headMap/subMap/tailMap view; it only restricts the keys, and does not affect the values.
-
restriction
private final Range<C extends java.lang.Comparable<?>> restriction
restriction is the subRangeSet view; ranges are truncated to their intersection with restriction.
-
rangesByLowerBound
private final java.util.NavigableMap<Cut<C extends java.lang.Comparable<?>>,Range<C extends java.lang.Comparable<?>>> rangesByLowerBound
-
-
Method Detail
-
subMap
public java.util.NavigableMap<Cut<C>,Range<C>> subMap(Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive)
-
containsKey
public boolean containsKey(java.lang.Object key)
-
entryIterator
java.util.Iterator<java.util.Map.Entry<Cut<C>,Range<C>>> entryIterator()
- Specified by:
entryIteratorin classMaps.IteratorBasedAbstractMap<Cut<C extends java.lang.Comparable<?>>,Range<C extends java.lang.Comparable<?>>>
-
descendingEntryIterator
java.util.Iterator<java.util.Map.Entry<Cut<C>,Range<C>>> descendingEntryIterator()
- Specified by:
descendingEntryIteratorin classAbstractNavigableMap<Cut<C extends java.lang.Comparable<?>>,Range<C extends java.lang.Comparable<?>>>
-
-