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