java.io.Serializable
, java.lang.Comparable<ImmutableLongIntMapFactoryImpl>
, ImmutableLongIntMapFactory
public enum ImmutableLongIntMapFactoryImpl extends java.lang.Enum<ImmutableLongIntMapFactoryImpl> implements ImmutableLongIntMapFactory
ImmutableLongIntMap
.
This file was automatically generated from template file immutablePrimitivePrimitiveMapFactoryImpl.stg.Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
ImmutableLongIntMap |
empty() |
|
<T> ImmutableLongIntMap |
from(java.lang.Iterable<T> iterable,
LongFunction<? super T> keyFunction,
IntFunction<? super T> valueFunction) |
Creates an
ImmutableLongIntMap from an Iterable<T> by applying keyFunction and valueFunction . |
ImmutableLongIntMap |
of() |
Same as
ImmutableLongIntMapFactory.empty() . |
ImmutableLongIntMap |
of(long key,
int value) |
|
ImmutableLongIntMap |
ofAll(LongIntMap map) |
|
static ImmutableLongIntMapFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ImmutableLongIntMapFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
ImmutableLongIntMap |
with() |
Same as
ImmutableLongIntMapFactory.empty() . |
ImmutableLongIntMap |
with(long key,
int value) |
|
ImmutableLongIntMap |
withAll(LongIntMap map) |
public static final ImmutableLongIntMapFactoryImpl INSTANCE
public static ImmutableLongIntMapFactoryImpl[] values()
for (ImmutableLongIntMapFactoryImpl c : ImmutableLongIntMapFactoryImpl.values()) System.out.println(c);
public static ImmutableLongIntMapFactoryImpl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic ImmutableLongIntMap empty()
empty
in interface ImmutableLongIntMapFactory
public ImmutableLongIntMap of()
ImmutableLongIntMapFactory
ImmutableLongIntMapFactory.empty()
.of
in interface ImmutableLongIntMapFactory
public ImmutableLongIntMap with()
ImmutableLongIntMapFactory
ImmutableLongIntMapFactory.empty()
.with
in interface ImmutableLongIntMapFactory
public ImmutableLongIntMap of(long key, int value)
ImmutableLongIntMapFactory
of
in interface ImmutableLongIntMapFactory
public ImmutableLongIntMap with(long key, int value)
with
in interface ImmutableLongIntMapFactory
public ImmutableLongIntMap ofAll(LongIntMap map)
ImmutableLongIntMapFactory
ofAll
in interface ImmutableLongIntMapFactory
public ImmutableLongIntMap withAll(LongIntMap map)
withAll
in interface ImmutableLongIntMapFactory
public <T> ImmutableLongIntMap from(java.lang.Iterable<T> iterable, LongFunction<? super T> keyFunction, IntFunction<? super T> valueFunction)
ImmutableLongIntMapFactory
ImmutableLongIntMap
from an Iterable<T>
by applying keyFunction
and valueFunction
.from
in interface ImmutableLongIntMapFactory
Copyright © 2004–2020. All rights reserved.