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