-
Returns an empty TreePMap using the natural ordering.
Returns an empty TreePMap using the specified comparator.
Returns a TreePMap with the specified comparator and mappings.
TreePMap.from(Map<? extends K,? extends V> map)
Returns a TreePMap with the specified mappings, using the natural ordering of the keys.
Returns a TreePMap with the same mappings and ordering as the specified map.
TreePMap.headMap(K toKey,
boolean inclusive)
Returns a TreePMap with a single element, using the specified comparator.
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.tailMap(K fromKey,
boolean inclusive)
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.
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.
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.
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.