Returns the empty map. This map behaves and performs comparably to Collections#emptyMap, and is preferable mainly for consistency and maintainability of your code. Performance note: the instance returned is a singleton.
()
| 121 | * <p><b>Performance note:</b> the instance returned is a singleton. |
| 122 | */ |
| 123 | @SuppressWarnings("unchecked") |
| 124 | public static <K, V> ImmutableMap<K, V> of() { |
| 125 | return (ImmutableMap<K, V>) RegularImmutableMap.EMPTY; |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Returns an immutable map containing a single entry. This map behaves and performs comparably to |
no test coverage detected