MCPcopy Create free account
hub / github.com/antlr/codebuff / newTreeMap

Method newTreeMap

corpus/java/training/guava/collect/Maps.java:321–323  ·  view source on GitHub ↗

Creates a mutable , empty TreeMap instance using the natural ordering of its elements. Note: if mutability is not required, use ImmutableSortedMap#of() instead. Note for Java 7 and later: this method is now unnecessary and should be treated as deprecated.

()

Source from the content-addressed store, hash-verified

319 * @return a new, empty {@code TreeMap}
320 */
321 public static <K extends Comparable, V> TreeMap<K, V> newTreeMap() {
322 return new TreeMap<K, V>();
323 }
324
325 /**
326 * Creates a <i>mutable</i> {@code TreeMap} instance with the same mappings as

Callers 2

differenceMethod · 0.95
TreeRangeMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected