Creates a <i>mutable</i>, empty {@code TreeMap} instance using the natural ordering of its elements. <p><b>Note:</b> if mutability is not required, use {@link ImmutableSortedMap#of()} instead. <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead, use the {@co
()
| 361 | * @return a new, empty {@code TreeMap} |
| 362 | */ |
| 363 | @SuppressWarnings({ |
| 364 | "rawtypes", // https://github.com/google/guava/issues/989 |
| 365 | "NonApiType", // acts as a direct substitute for a constructor call |
| 366 | }) |
| 367 | public static <K extends Comparable, V extends @Nullable Object> TreeMap<K, V> newTreeMap() { |
| 368 | return new TreeMap<>(); |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Creates a <i>mutable</i> {@code TreeMap} instance with the same mappings as the specified map |
no outgoing calls