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.
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.
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.