ImmutableHashingStrategyMapFactory
public enum ImmutableHashingStrategyMapFactoryImpl extends java.lang.Enum<ImmutableHashingStrategyMapFactoryImpl> implements ImmutableHashingStrategyMapFactory
Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<K,V> ImmutableMap<K,V> |
of(HashingStrategy<? super K> hashingStrategy) |
|
<K,V> ImmutableMap<K,V> |
of(HashingStrategy<? super K> hashingStrategy,
K key,
V value) |
|
<K,V> ImmutableMap<K,V> |
of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2) |
|
<K,V> ImmutableMap<K,V> |
of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
|
<K,V> ImmutableMap<K,V> |
of(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
|
<K,V> ImmutableMap<K,V> |
ofAll(java.util.Map<K,V> map) |
|
<K,V> ImmutableMap<K,V> |
ofMap(java.util.Map<K,V> map) |
Deprecated.
use
ofAll(Map) instead (inlineable) |
static ImmutableHashingStrategyMapFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ImmutableHashingStrategyMapFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<K,V> ImmutableMap<K,V> |
with(HashingStrategy<? super K> hashingStrategy) |
|
<K,V> ImmutableMap<K,V> |
with(HashingStrategy<? super K> hashingStrategy,
K key,
V value) |
|
<K,V> ImmutableMap<K,V> |
with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2) |
|
<K,V> ImmutableMap<K,V> |
with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
|
<K,V> ImmutableMap<K,V> |
with(HashingStrategy<? super K> hashingStrategy,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
|
<K,V> ImmutableMap<K,V> |
withAll(java.util.Map<K,V> map) |
public static final ImmutableHashingStrategyMapFactoryImpl INSTANCE
public static ImmutableHashingStrategyMapFactoryImpl[] values()
for (ImmutableHashingStrategyMapFactoryImpl c : ImmutableHashingStrategyMapFactoryImpl.values()) System.out.println(c);
public static ImmutableHashingStrategyMapFactoryImpl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic <K,V> ImmutableMap<K,V> of(HashingStrategy<? super K> hashingStrategy)
ImmutableHashingStrategyMapFactory
of
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> with(HashingStrategy<? super K> hashingStrategy)
with
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> of(HashingStrategy<? super K> hashingStrategy, K key, V value)
ImmutableHashingStrategyMapFactory
of
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> with(HashingStrategy<? super K> hashingStrategy, K key, V value)
with
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> of(HashingStrategy<? super K> hashingStrategy, K key1, V value1, K key2, V value2)
ImmutableHashingStrategyMapFactory
of
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> with(HashingStrategy<? super K> hashingStrategy, K key1, V value1, K key2, V value2)
with
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> of(HashingStrategy<? super K> hashingStrategy, K key1, V value1, K key2, V value2, K key3, V value3)
ImmutableHashingStrategyMapFactory
of
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> with(HashingStrategy<? super K> hashingStrategy, K key1, V value1, K key2, V value2, K key3, V value3)
with
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> of(HashingStrategy<? super K> hashingStrategy, K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
ImmutableHashingStrategyMapFactory
of
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> with(HashingStrategy<? super K> hashingStrategy, K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
with
in interface ImmutableHashingStrategyMapFactory
@Deprecated public <K,V> ImmutableMap<K,V> ofMap(java.util.Map<K,V> map)
ofAll(Map)
instead (inlineable)ofMap
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> ofAll(java.util.Map<K,V> map)
ImmutableHashingStrategyMapFactory
ofAll
in interface ImmutableHashingStrategyMapFactory
public <K,V> ImmutableMap<K,V> withAll(java.util.Map<K,V> map)
withAll
in interface ImmutableHashingStrategyMapFactory
Copyright © 2004–2018. All rights reserved.