Serializable
, Comparable<ImmutableShortObjectMapFactoryImpl>
, ImmutableShortObjectMapFactory
public enum ImmutableShortObjectMapFactoryImpl extends Enum<ImmutableShortObjectMapFactoryImpl> implements ImmutableShortObjectMapFactory
ImmutableShortObjectMap
.
This file was automatically generated from template file immutablePrimitiveObjectMapFactoryImpl.stg.Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<V> ImmutableShortObjectMap<V> |
empty() |
|
<T,V> ImmutableShortObjectMap<V> |
from(Iterable<T> iterable,
ShortFunction<? super T> keyFunction,
Function<? super T,? extends V> valueFunction) |
Creates an
ImmutableShortObjectMap from an Iterable<T> by applying keyFunction and valueFunction . |
<V> ImmutableShortObjectMap<V> |
of() |
|
<V> ImmutableShortObjectMap<V> |
of(short key,
V value) |
|
<V> ImmutableShortObjectMap<V> |
ofAll(ShortObjectMap<? extends V> map) |
|
static ImmutableShortObjectMapFactoryImpl |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ImmutableShortObjectMapFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<V> ImmutableShortObjectMap<V> |
with() |
|
<V> ImmutableShortObjectMap<V> |
with(short key,
V value) |
|
<V> ImmutableShortObjectMap<V> |
withAll(ShortObjectMap<? extends V> map) |
public static final ImmutableShortObjectMapFactoryImpl INSTANCE
public static ImmutableShortObjectMapFactoryImpl[] values()
for (ImmutableShortObjectMapFactoryImpl c : ImmutableShortObjectMapFactoryImpl.values()) System.out.println(c);
public static ImmutableShortObjectMapFactoryImpl valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <V> ImmutableShortObjectMap<V> empty()
empty
in interface ImmutableShortObjectMapFactory
public <V> ImmutableShortObjectMap<V> of()
ImmutableShortObjectMapFactory
of
in interface ImmutableShortObjectMapFactory
public <V> ImmutableShortObjectMap<V> with()
ImmutableShortObjectMapFactory
with
in interface ImmutableShortObjectMapFactory
public <V> ImmutableShortObjectMap<V> of(short key, V value)
ImmutableShortObjectMapFactory
of
in interface ImmutableShortObjectMapFactory
public <V> ImmutableShortObjectMap<V> with(short key, V value)
with
in interface ImmutableShortObjectMapFactory
public <V> ImmutableShortObjectMap<V> ofAll(ShortObjectMap<? extends V> map)
ImmutableShortObjectMapFactory
ofAll
in interface ImmutableShortObjectMapFactory
public <V> ImmutableShortObjectMap<V> withAll(ShortObjectMap<? extends V> map)
withAll
in interface ImmutableShortObjectMapFactory
public <T,V> ImmutableShortObjectMap<V> from(Iterable<T> iterable, ShortFunction<? super T> keyFunction, Function<? super T,? extends V> valueFunction)
ImmutableShortObjectMapFactory
ImmutableShortObjectMap
from an Iterable<T>
by applying keyFunction
and valueFunction
.from
in interface ImmutableShortObjectMapFactory
Copyright © 2004–2019. All rights reserved.