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