Returns the empty sorted map.
()
| 78 | */ |
| 79 | |
| 80 | @SuppressWarnings("unchecked") |
| 81 | // unsafe, comparator() returns a comparator on the specified type |
| 82 | // TODO(kevinb): evaluate whether or not of().comparator() should return null |
| 83 | public static <K, V> ImmutableSortedMap<K, V> of() { |
| 84 | return (ImmutableSortedMap<K, V>) NATURAL_EMPTY_MAP; |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Returns an immutable map containing a single entry. |