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<K,V>
TreePMap. descendingMap()
static <K extends java.lang.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(java.util.Comparator<? super K> comparator)
Returns an empty TreePMap using the specified comparator.static <K,V>
TreePMap<K,V>TreePMap. from(java.util.Comparator<? super K> comparator, java.util.Map<? extends K,? extends V> map)
Returns a TreePMap with the specified comparator and mappings.static <K extends java.lang.Comparable<? super K>,V>
TreePMap<K,V>TreePMap. from(java.util.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(java.util.SortedMap<K,? extends V> map)
Returns a TreePMap with the same mappings and ordering as the specified map.TreePMap<K,V>
TreePMap. headMap(K toKey)
TreePMap<K,V>
TreePMap. headMap(K toKey, boolean inclusive)
TreePMap<K,V>
TreePMap. minus(java.lang.Object key)
TreePMap<K,V>
TreePMap. minusAll(java.util.Collection<?> keys)
TreePMap<K,V>
TreePMap. minusFirstEntry()
TreePMap<K,V>
TreePMap. minusLastEntry()
TreePMap<K,V>
TreePMap. plus(K key, V value)
TreePMap<K,V>
TreePMap. plusAll(java.util.Map<? extends K,? extends V> map)
static <K,V>
TreePMap<K,V>TreePMap. singleton(java.util.Comparator<? super K> comparator, K key, V value)
Returns a TreePMap with a single element, using the specified comparator.static <K extends java.lang.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<K,V>
TreePMap. subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
TreePMap<K,V>
TreePMap. subMap(K fromKey, K toKey)
TreePMap<K,V>
TreePMap. tailMap(K fromKey)
TreePMap<K,V>
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>
java.util.stream.Collector<T,?,TreePMap<K,V>>TreePMap. toTreePMap(java.util.Comparator<? super K> comparator, java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.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>
java.util.stream.Collector<T,?,TreePMap<K,V>>TreePMap. toTreePMap(java.util.Comparator<? super K> comparator, java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper, java.util.function.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 java.lang.Comparable<? super K>,V>
java.util.stream.Collector<T,?,TreePMap<K,V>>TreePMap. toTreePMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.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 java.lang.Comparable<? super K>,V>
java.util.stream.Collector<T,?,TreePMap<K,V>>TreePMap. toTreePMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper, java.util.function.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.
-