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