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

Method of

guava/src/com/google/common/collect/ImmutableBiMap.java:76–79  ·  guava/src/com/google/common/collect/ImmutableBiMap.java::ImmutableBiMap.of
()

Source from the content-addressed store, hash-verified

74 */
75 class="cm">// Casting to any type is safe because the set will never hold any elements.
76 @SuppressWarnings(class="st">"unchecked")
77 public static <K, V> ImmutableBiMap<K, V> of() {
78 return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY;
79 }
80
81 /** Returns an immutable bimap containing a single entry. */
82 public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) {

Callers 5

copyOfMethod · 0.95
inverseMethod · 0.95
ofMethod · 0.95
buildOrThrowMethod · 0.45
buildJdkBackedMethod · 0.45

Calls 2

fromEntriesMethod · 0.95
entryOfMethod · 0.45

Tested by

no test coverage detected