Class TreeBasedTable.TreeRow

  • All Implemented Interfaces:
    java.util.Map<C,​V>, java.util.SortedMap<C,​V>
    Enclosing class:
    TreeBasedTable<R,​C,​V>

    private class TreeBasedTable.TreeRow
    extends StandardTable.Row
    implements java.util.SortedMap<C,​V>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeRow​(R rowKey)  
      TreeRow​(R rowKey, C lowerBound, C upperBound)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.SortedMap<C,​V> backingRowMap()  
      java.util.Comparator<? super C> comparator()  
      (package private) int compare​(java.lang.Object a, java.lang.Object b)  
      (package private) java.util.SortedMap<C,​V> computeBackingRowMap()  
      boolean containsKey​(java.lang.Object key)  
      C firstKey()  
      java.util.SortedMap<C,​V> headMap​(C toKey)  
      java.util.SortedSet<C> keySet()  
      C lastKey()  
      (package private) void maintainEmptyInvariant()  
      V put​(C key, V value)  
      (package private) boolean rangeContains​(java.lang.Object o)  
      java.util.SortedMap<C,​V> subMap​(C fromKey, C toKey)  
      java.util.SortedMap<C,​V> tailMap​(C fromKey)  
      (package private) java.util.SortedMap<C,​V> wholeRow()  
      • Methods inherited from class java.util.AbstractMap

        clone, containsValue, equals, hashCode, isEmpty, putAll, 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, get, getOrDefault, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
      • Methods inherited from interface java.util.SortedMap

        entrySet, values
    • Field Detail

      • lowerBound

        @Nullable
        final C lowerBound
      • upperBound

        @Nullable
        final C upperBound
      • wholeRow

        transient java.util.SortedMap<C,​V> wholeRow
    • Constructor Detail

      • TreeRow

        TreeRow​(R rowKey)
      • TreeRow

        TreeRow​(R rowKey,
                @Nullable
                C lowerBound,
                @Nullable
                C upperBound)
    • Method Detail

      • keySet

        public java.util.SortedSet<C> keySet()
        Specified by:
        keySet in interface java.util.Map<C,​V>
        Specified by:
        keySet in interface java.util.SortedMap<C,​V>
        Overrides:
        keySet in class java.util.AbstractMap<C,​V>
      • comparator

        public java.util.Comparator<? super C> comparator()
        Specified by:
        comparator in interface java.util.SortedMap<C,​V>
      • compare

        int compare​(java.lang.Object a,
                    java.lang.Object b)
      • rangeContains

        boolean rangeContains​(@Nullable
                              java.lang.Object o)
      • subMap

        public java.util.SortedMap<C,​V> subMap​(C fromKey,
                                                     C toKey)
        Specified by:
        subMap in interface java.util.SortedMap<C,​V>
      • headMap

        public java.util.SortedMap<C,​V> headMap​(C toKey)
        Specified by:
        headMap in interface java.util.SortedMap<C,​V>
      • tailMap

        public java.util.SortedMap<C,​V> tailMap​(C fromKey)
        Specified by:
        tailMap in interface java.util.SortedMap<C,​V>
      • firstKey

        public C firstKey()
        Specified by:
        firstKey in interface java.util.SortedMap<C,​V>
      • lastKey

        public C lastKey()
        Specified by:
        lastKey in interface java.util.SortedMap<C,​V>
      • wholeRow

        java.util.SortedMap<C,​V> wholeRow()
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<C,​V>
        Overrides:
        containsKey in class StandardTable.Row
      • put

        public V put​(C key,
                     V value)
        Specified by:
        put in interface java.util.Map<C,​V>
        Overrides:
        put in class StandardTable.Row