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)  
    • Field Detail

      • lowerBound

        final C lowerBound
      • upperBound

        final C upperBound
      • wholeRow

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

      • TreeRow

        TreeRow​(R rowKey)
      • TreeRow

        TreeRow​(R rowKey,
                C lowerBound,
                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​(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