Class Object2ReferenceRBTreeMap<K,​V>

    • Constructor Detail

      • Object2ReferenceRBTreeMap

        public Object2ReferenceRBTreeMap()
        Creates a new empty tree map.
      • Object2ReferenceRBTreeMap

        public Object2ReferenceRBTreeMap​(java.util.Comparator<? super K> c)
        Creates a new empty tree map with the given comparator.
        Parameters:
        c - a (possibly type-specific) comparator.
      • Object2ReferenceRBTreeMap

        public Object2ReferenceRBTreeMap​(java.util.Map<? extends K,​? extends V> m)
        Creates a new tree map copying a given map.
        Parameters:
        m - a Map to be copied into the new tree map.
      • Object2ReferenceRBTreeMap

        public Object2ReferenceRBTreeMap​(java.util.SortedMap<K,​V> m)
        Creates a new tree map copying a given sorted map (and its Comparator).
        Parameters:
        m - a SortedMap to be copied into the new tree map.
      • Object2ReferenceRBTreeMap

        public Object2ReferenceRBTreeMap​(Object2ReferenceMap<? extends K,​? extends V> m)
        Creates a new tree map copying a given map.
        Parameters:
        m - a type-specific map to be copied into the new tree map.
      • Object2ReferenceRBTreeMap

        public Object2ReferenceRBTreeMap​(Object2ReferenceSortedMap<K,​V> m)
        Creates a new tree map copying a given sorted map (and its Comparator).
        Parameters:
        m - a type-specific sorted map to be copied into the new tree map.
      • Object2ReferenceRBTreeMap

        public Object2ReferenceRBTreeMap​(K[] k,
                                         V[] v,
                                         java.util.Comparator<? super K> c)
        Creates a new tree map using the elements of two parallel arrays and the given comparator.
        Parameters:
        k - the array of keys of the new tree map.
        v - the array of corresponding values in the new tree map.
        c - a (possibly type-specific) comparator.
        Throws:
        java.lang.IllegalArgumentException - if k and v have different lengths.
      • Object2ReferenceRBTreeMap

        public Object2ReferenceRBTreeMap​(K[] k,
                                         V[] v)
        Creates a new tree map using the elements of two parallel arrays.
        Parameters:
        k - the array of keys of the new tree map.
        v - the array of corresponding values in the new tree map.
        Throws:
        java.lang.IllegalArgumentException - if k and v have different lengths.