Uses of Class
org.pcollections.TreePMap

  • Uses of TreePMap in org.pcollections

    Methods in org.pcollections that return TreePMap
    Modifier and Type
    Method
    Description
    TreePMap.descendingMap()
     
    static <K extends Comparable<? super K>, V>
    TreePMap<K,V>
    TreePMap.empty()
    Returns an empty TreePMap using the natural ordering.
    static <K, V> TreePMap<K,V>
    TreePMap.empty(Comparator<? super K> comparator)
    Returns an empty TreePMap using the specified comparator.
    static <K, V> TreePMap<K,V>
    TreePMap.from(Comparator<? super K> comparator, Map<? extends K,? extends V> map)
    Returns a TreePMap with the specified comparator and mappings.
    static <K extends Comparable<? super K>, V>
    TreePMap<K,V>
    TreePMap.from(Map<? extends K,? extends V> map)
    Returns a TreePMap with the specified mappings, using the natural ordering of the keys.
    static <K, V> TreePMap<K,V>
    TreePMap.fromSortedMap(SortedMap<K,? extends V> map)
    Returns a TreePMap with the same mappings and ordering as the specified map.
    TreePMap.headMap(K toKey)
     
    TreePMap.headMap(K toKey, boolean inclusive)
     
    TreePMap.minus(Object key)
     
    TreePMap.minusAll(Collection<?> keys)
     
    TreePMap.minusFirstEntry()
     
    TreePMap.minusLastEntry()
     
    TreePMap.plus(K key, V value)
     
    TreePMap.plusAll(Map<? extends K,? extends V> map)
     
    static <K, V> TreePMap<K,V>
    TreePMap.singleton(Comparator<? super K> comparator, K key, V value)
    Returns a TreePMap with a single element, using the specified comparator.
    static <K extends Comparable<? super K>, V>
    TreePMap<K,V>
    TreePMap.singleton(K key, V value)
    Returns a TreePMap with a single mapping, using the natural ordering of its keys.
    TreePMap.subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
     
    TreePMap.subMap(K fromKey, K toKey)
     
    TreePMap.tailMap(K fromKey)
     
    TreePMap.tailMap(K fromKey, boolean inclusive)
     
    private TreePMap<K,V>
    TreePMap.withTree(KVTree<K,V> updatedTree)
     
    Methods in org.pcollections that return types with arguments of type TreePMap
    Modifier and Type
    Method
    Description
    static <T, K, V> Collector<T,?,TreePMap<K,V>>
    TreePMap.toTreePMap(Comparator<? super K> comparator, Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper)
    Returns a collector that gathers a stream into a TreePMap with mappings computed from the elements of the stream (using the specified keyMapper and valueMapper), in the order determined by the specified comparator.
    static <T, K, V> Collector<T,?,TreePMap<K,V>>
    TreePMap.toTreePMap(Comparator<? super K> comparator, Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper, BinaryOperator<V> mergeFunction)
    Returns a collector that gathers a stream into a TreePMap with mappings computed from the elements of the stream (using the specified keyMapper and valueMapper, with duplicates reconciled via the specified mergeFunction), in the order determined by the specified comparator.
    static <T, K extends Comparable<? super K>, V>
    Collector<T,?,TreePMap<K,V>>
    TreePMap.toTreePMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper)
    Returns a collector that gathers a stream into a TreePMap with mappings computed from the elements of the stream (using the specified keyMapper and valueMapper), in the order determined by the natural ordering of the keys.
    static <T, K extends Comparable<? super K>, V>
    Collector<T,?,TreePMap<K,V>>
    TreePMap.toTreePMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper, BinaryOperator<V> mergeFunction)
    Returns a collector that gathers a stream into a TreePMap with mappings computed from the elements of the stream (using the specified keyMapper and valueMapper, with duplicates reconciled via the specified mergeFunction), in the order determined by the natural ordering of the keys.