MCPcopy
hub / github.com/google/guava / of

Method of

guava/src/com/google/common/collect/ImmutableMap.java:123–126  ·  guava/src/com/google/common/collect/ImmutableMap.java::ImmutableMap.of

Returns the empty map. This map behaves and performs comparably to {@link Collections#emptyMap}, and is preferable mainly for consistency and maintainability of your code. <p><b>Performance note:</b> the instance returned is a singleton.

()

Source from the content-addressed store, hash-verified

121 * <p><b>Performance note:</b> the instance returned is a singleton.
122 */
123 @SuppressWarnings(class="st">"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

Callers 15

immutableEnumMapMethod · 0.95
columnMethod · 0.95
columnMapMethod · 0.95
rowMapMethod · 0.95
ofMethod · 0.95
toImmutableMapMethod · 0.95
asImmutableMethod · 0.95
copyOfMethod · 0.95
asMapOfRangesMethod · 0.95

Calls 3

ofMethod · 0.95
fromEntriesMethod · 0.95
entryOfMethod · 0.95

Tested by

no test coverage detected