Serializable
, Comparable<ImmutableShortLongMapFactoryImpl>
, ImmutableShortLongMapFactory
public enum ImmutableShortLongMapFactoryImpl extends Enum<ImmutableShortLongMapFactoryImpl> implements ImmutableShortLongMapFactory
ImmutableShortLongMap
.
This file was automatically generated from template file immutablePrimitivePrimitiveMapFactoryImpl.stg.Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
ImmutableShortLongMap |
empty() |
|
<T> ImmutableShortLongMap |
from(Iterable<T> iterable,
ShortFunction<? super T> keyFunction,
LongFunction<? super T> valueFunction) |
Creates an
ImmutableShortLongMap from an Iterable<T> by applying keyFunction and valueFunction . |
ImmutableShortLongMap |
of() |
Same as
ImmutableShortLongMapFactory.empty() . |
ImmutableShortLongMap |
of(short key,
long value) |
|
ImmutableShortLongMap |
ofAll(ShortLongMap map) |
|
static ImmutableShortLongMapFactoryImpl |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ImmutableShortLongMapFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
ImmutableShortLongMap |
with() |
Same as
ImmutableShortLongMapFactory.empty() . |
ImmutableShortLongMap |
with(short key,
long value) |
|
ImmutableShortLongMap |
withAll(ShortLongMap map) |
public static final ImmutableShortLongMapFactoryImpl INSTANCE
public static ImmutableShortLongMapFactoryImpl[] values()
for (ImmutableShortLongMapFactoryImpl c : ImmutableShortLongMapFactoryImpl.values()) System.out.println(c);
public static ImmutableShortLongMapFactoryImpl 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 ImmutableShortLongMap empty()
empty
in interface ImmutableShortLongMapFactory
public ImmutableShortLongMap of()
ImmutableShortLongMapFactory
ImmutableShortLongMapFactory.empty()
.of
in interface ImmutableShortLongMapFactory
public ImmutableShortLongMap with()
ImmutableShortLongMapFactory
ImmutableShortLongMapFactory.empty()
.with
in interface ImmutableShortLongMapFactory
public ImmutableShortLongMap of(short key, long value)
ImmutableShortLongMapFactory
of
in interface ImmutableShortLongMapFactory
public ImmutableShortLongMap with(short key, long value)
with
in interface ImmutableShortLongMapFactory
public ImmutableShortLongMap ofAll(ShortLongMap map)
ImmutableShortLongMapFactory
ofAll
in interface ImmutableShortLongMapFactory
public ImmutableShortLongMap withAll(ShortLongMap map)
withAll
in interface ImmutableShortLongMapFactory
public <T> ImmutableShortLongMap from(Iterable<T> iterable, ShortFunction<? super T> keyFunction, LongFunction<? super T> valueFunction)
ImmutableShortLongMapFactory
ImmutableShortLongMap
from an Iterable<T>
by applying keyFunction
and valueFunction
.from
in interface ImmutableShortLongMapFactory
Copyright © 2004–2019. All rights reserved.