Uses of Class
dev.mccue.guava.collect.ImmutableMap

  • Uses of ImmutableMap in dev.mccue.guava.collect

    Modifier and Type
    Class
    Description
    class 
    A BiMap whose contents will never change, with many other important properties detailed at ImmutableCollection.
    final class 
    A NavigableMap whose contents will never change, with many other important properties detailed at ImmutableCollection.
    Methods in dev.mccue.guava.collect that return ImmutableMap
    Modifier and Type
    Method
    Description
    ImmutableRangeMap.asDescendingMapOfRanges()
     
    ImmutableMultimap.asMap()
    Returns an immutable map that associates each key with its corresponding values in the multimap.
    ImmutableRangeMap.asMapOfRanges()
     
    ImmutableMap.Builder.build()
    Returns a newly-created immutable map.
    ImmutableMap.Builder.buildKeepingLast()
    Returns a newly-created immutable map, using the last value for any key that was added more than once.
    ImmutableMap.Builder.buildOrThrow()
    Returns a newly-created immutable map, or throws an exception if any key was added more than once.
    ImmutableTable.column(C columnKey)
    Returns a view of all mappings that have the given column key.
    abstract ImmutableMap<C,Map<R,V>>
    ImmutableTable.columnMap()
    Returns a view that associates each column key with the corresponding map from row keys to values.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.copyOf(Iterable<? extends Map.Entry<? extends K,? extends V>> entries)
    Returns an immutable map containing the specified entries.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.copyOf(Map<? extends K,? extends V> map)
    Returns an immutable map containing the same entries as map.
    Maps.fromProperties(Properties properties)
    Creates an ImmutableMap<String, String> from a Properties instance.
    static <K extends Enum<K>, V>
    ImmutableMap<K,V>
    Maps.immutableEnumMap(Map<K,? extends V> map)
    Returns an immutable map instance containing the given entries.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of()
    Returns the empty map.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1)
    Returns an immutable map containing a single entry.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10)
    Returns an immutable map containing the given entries, in order.
    static <K, V> ImmutableMap<K,V>
    ImmutableMap.ofEntries(Map.Entry<? extends K,? extends V>... entries)
    Returns an immutable map containing the given entries, in order.
    ImmutableTable.row(R rowKey)
    Returns a view of all mappings that have the given row key.
    abstract ImmutableMap<R,Map<C,V>>
    ImmutableTable.rowMap()
    Returns a view that associates each row key with the corresponding map from column keys to values.
    final <V> ImmutableMap<@NonNull E,V>
    FluentIterable.toMap(dev.mccue.guava.base.Function<? super E,V> valueFunction)
    Returns an immutable map whose keys are the distinct elements of this FluentIterable and whose value for each key was computed by valueFunction.
    static <K, V> ImmutableMap<K,V>
    Maps.toMap(Iterable<K> keys, dev.mccue.guava.base.Function<? super K,V> valueFunction)
    Returns an immutable map whose keys are the distinct elements of keys and whose value for each key was computed by valueFunction.
    static <K, V> ImmutableMap<K,V>
    Maps.toMap(Iterator<K> keys, dev.mccue.guava.base.Function<? super K,V> valueFunction)
    Returns an immutable map whose keys are the distinct elements of keys and whose value for each key was computed by valueFunction.
    final <K> ImmutableMap<K,@NonNull E>
    FluentIterable.uniqueIndex(dev.mccue.guava.base.Function<? super E,K> keyFunction)
    Returns a map with the contents of this FluentIterable as its values, indexed by keys derived from those values.
    static <K, V> ImmutableMap<K,V>
    Maps.uniqueIndex(Iterable<V> values, dev.mccue.guava.base.Function<? super V,K> keyFunction)
    Returns a map with the given values, indexed by keys derived from those values.
    static <K, V> ImmutableMap<K,V>
    Maps.uniqueIndex(Iterator<V> values, dev.mccue.guava.base.Function<? super V,K> keyFunction)
    Returns a map with the given values, indexed by keys derived from those values.
    Methods in dev.mccue.guava.collect that return types with arguments of type ImmutableMap
    Modifier and Type
    Method
    Description
    static <T extends @Nullable Object, K extends Enum<K>, V>
    Collector<T,?,ImmutableMap<K,V>>
    Maps.toImmutableEnumMap(Function<? super T,? extends K> keyFunction, Function<? super T,? extends V> valueFunction)
    Returns a Collector that accumulates elements into an ImmutableMap whose keys and values are the result of applying the provided mapping functions to the input elements.
    static <T extends @Nullable Object, K extends Enum<K>, V>
    Collector<T,?,ImmutableMap<K,V>>
    Maps.toImmutableEnumMap(Function<? super T,? extends K> keyFunction, Function<? super T,? extends V> valueFunction, BinaryOperator<V> mergeFunction)
    Returns a Collector that accumulates elements into an ImmutableMap whose keys and values are the result of applying the provided mapping functions to the input elements.
    static <T extends @Nullable Object, K, V>
    Collector<T,?,ImmutableMap<K,V>>
    ImmutableMap.toImmutableMap(Function<? super T,? extends K> keyFunction, Function<? super T,? extends V> valueFunction)
    Returns a Collector that accumulates elements into an ImmutableMap whose keys and values are the result of applying the provided mapping functions to the input elements.
    static <T extends @Nullable Object, K, V>
    Collector<T,?,ImmutableMap<K,V>>
    ImmutableMap.toImmutableMap(Function<? super T,? extends K> keyFunction, Function<? super T,? extends V> valueFunction, BinaryOperator<V> mergeFunction)
    Returns a Collector that accumulates elements into an ImmutableMap whose keys and values are the result of applying the provided mapping functions to the input elements.