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