Example usage for Java com.google.common.collect Maps fields, constructors, methods, implement or subclass
The text is from its open source code.
Converter | asConverter(final BiMap bimap) Returns a Converter that converts values using BiMap#get bimap.get() , and whose inverse view converts values using BiMap#inverse bimap.inverse() .get() . |
Map | asMap(Set Returns a live Map view whose keys are the contents of set and whose values are computed on demand using function . |
SortedMap | asMap(SortedSet Returns a view of the sorted set as a map, mapping keys from the set according to the specified function. |
NavigableMap | asMap(NavigableSet Returns a view of the navigable set as a map, mapping keys from the set according to the specified function. |
MapDifference | difference(Map extends K, ? extends V> left, Map extends K, ? extends V> right) Computes the difference between two maps. |
SortedMapDifference | difference(SortedMap Computes the difference between two sorted maps, using the comparator of the left map, or Ordering.natural() if the left map uses the natural ordering of its elements. |
MapDifference | difference(Map extends K, ? extends V> left, Map extends K, ? extends V> right, Equivalence super V> valueEquivalence) Computes the difference between two maps. |
Map | filterEntries(Map Returns a map containing the mappings in unfiltered that satisfy a predicate. |
SortedMap | filterEntries(SortedMap Returns a sorted map containing the mappings in unfiltered that satisfy a predicate. |
NavigableMap | filterEntries(NavigableMap Returns a sorted map containing the mappings in unfiltered that satisfy a predicate. |
BiMap | filterEntries(BiMap Returns a bimap containing the mappings in unfiltered that satisfy a predicate. |
Map | filterKeys(Map Returns a map containing the mappings in unfiltered whose keys satisfy a predicate. |
SortedMap | filterKeys(SortedMap Returns a sorted map containing the mappings in unfiltered whose keys satisfy a predicate. |
NavigableMap | filterKeys(NavigableMap Returns a navigable map containing the mappings in unfiltered whose keys satisfy a predicate. |
BiMap | filterKeys(BiMap Returns a bimap containing the mappings in unfiltered whose keys satisfy a predicate. |
Map | filterValues(Map Returns a map containing the mappings in unfiltered whose values satisfy a predicate. |
SortedMap | filterValues(SortedMap Returns a sorted map containing the mappings in unfiltered whose values satisfy a predicate. |
NavigableMap | filterValues(NavigableMap Returns a navigable map containing the mappings in unfiltered whose values satisfy a predicate. |
BiMap | filterValues(BiMap Returns a bimap containing the mappings in unfiltered whose values satisfy a predicate. |
ImmutableMap | fromProperties(Properties properties) Creates an ImmutableMap |
Entry | immutableEntry(@Nullable K key, @Nullable V value) Returns an immutable map entry with the specified key and value. |
ImmutableMap | immutableEnumMap(Map Returns an immutable map instance containing the given entries. |
ConcurrentMap | newConcurrentMap() Returns a general-purpose instance of ConcurrentMap , which supports all optional operations of the ConcurrentMap interface. |
EnumMap | newEnumMap(Class Creates an EnumMap instance. |
EnumMap | newEnumMap(Map Creates an EnumMap with the same mappings as the specified map. |
HashMap | newHashMap() Creates a mutable, empty HashMap instance. |
HashMap | newHashMap(Map extends K, ? extends V> map) Creates a mutable HashMap instance with the same mappings as the specified map. |
HashMap | newHashMapWithExpectedSize(int expectedSize) Creates a HashMap instance, with a high enough "initial capacity" that it should hold expectedSize elements without growth. |
IdentityHashMap | newIdentityHashMap() Creates an IdentityHashMap instance. |
LinkedHashMap | newLinkedHashMap() Creates a mutable, empty, insertion-ordered LinkedHashMap instance. |
LinkedHashMap | newLinkedHashMap(Map extends K, ? extends V> map) Creates a mutable, insertion-ordered LinkedHashMap instance with the same mappings as the specified map. |
LinkedHashMap | newLinkedHashMapWithExpectedSize(int expectedSize) Creates a LinkedHashMap instance, with a high enough "initial capacity" that it should hold expectedSize elements without growth. |
TreeMap | newTreeMap() Creates a mutable, empty TreeMap instance using the natural ordering of its elements. |
TreeMap | newTreeMap(SortedMap Creates a mutable TreeMap instance with the same mappings as the specified map and using the same ordering as the specified map. |
TreeMap | newTreeMap(@Nullable Comparator Creates a mutable, empty TreeMap instance using the given comparator. |
BiMap | synchronizedBiMap(BiMap Returns a synchronized (thread-safe) bimap backed by the specified bimap. |
NavigableMap | synchronizedNavigableMap(NavigableMap Returns a synchronized (thread-safe) navigable map backed by the specified navigable map. |
ImmutableMap | toMap(Iterable Returns an immutable map whose keys are the distinct elements of keys and whose value for each key was computed by valueFunction . |
ImmutableMap | toMap(Iterator Returns an immutable map whose keys are the distinct elements of keys and whose value for each key was computed by valueFunction . |
Map | transformEntries(Map Returns a view of a map whose values are derived from the original map's entries. |
SortedMap | transformEntries(SortedMap Returns a view of a sorted map whose values are derived from the original sorted map's entries. |
NavigableMap | transformEntries(NavigableMap Returns a view of a navigable map whose values are derived from the original navigable map's entries. |
Map | transformValues(Map Returns a view of a map where each value is transformed by a function. |
SortedMap | transformValues(SortedMap Returns a view of a sorted map where each value is transformed by a function. |
NavigableMap | transformValues(NavigableMap Returns a view of a navigable map where each value is transformed by a function. |
ImmutableMap | uniqueIndex(Iterable Returns a map with the given values , indexed by keys derived from those values. |
ImmutableMap | uniqueIndex(Iterator Returns a map with the given values , indexed by keys derived from those values. |
BiMap | unmodifiableBiMap(BiMap extends K, ? extends V> bimap) Returns an unmodifiable view of the specified bimap. |
NavigableMap | unmodifiableNavigableMap(NavigableMap Returns an unmodifiable view of the specified navigable map. |