Serializable
, Comparable<MutableObjectShortMapFactoryImpl>
, MutableObjectShortMapFactory
public enum MutableObjectShortMapFactoryImpl extends Enum<MutableObjectShortMapFactoryImpl> implements MutableObjectShortMapFactory
MutableObjectShortMap
.
This file was automatically generated from template file mutableObjectPrimitiveMapFactoryImpl.stg.Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<K> MutableObjectShortMap<K> |
empty() |
|
<T,K> MutableObjectShortMap<K> |
from(Iterable<T> iterable,
Function<? super T,? extends K> keyFunction,
ShortFunction<? super T> valueFunction) |
Creates an
MutableObjectShortMap from an Iterable<T> by applying keyFunction and valueFunction . |
<K> MutableObjectShortMap<K> |
of() |
Same as
MutableObjectShortMapFactory.empty() . |
<K> MutableObjectShortMap<K> |
ofAll(ObjectShortMap<? extends K> map) |
|
<K> MutableObjectShortMap<K> |
ofInitialCapacity(int capacity) |
Same as
MutableObjectShortMapFactory.empty() . |
static MutableObjectShortMapFactoryImpl |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static MutableObjectShortMapFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<K> MutableObjectShortMap<K> |
with() |
Same as
MutableObjectShortMapFactory.empty() . |
<K> MutableObjectShortMap<K> |
withAll(ObjectShortMap<? extends K> map) |
|
<K> MutableObjectShortMap<K> |
withInitialCapacity(int capacity) |
Same as
MutableObjectShortMapFactory.empty() . |
public static final MutableObjectShortMapFactoryImpl INSTANCE
public static MutableObjectShortMapFactoryImpl[] values()
for (MutableObjectShortMapFactoryImpl c : MutableObjectShortMapFactoryImpl.values()) System.out.println(c);
public static MutableObjectShortMapFactoryImpl 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 <K> MutableObjectShortMap<K> empty()
empty
in interface MutableObjectShortMapFactory
public <K> MutableObjectShortMap<K> of()
MutableObjectShortMapFactory
MutableObjectShortMapFactory.empty()
.of
in interface MutableObjectShortMapFactory
public <K> MutableObjectShortMap<K> with()
MutableObjectShortMapFactory
MutableObjectShortMapFactory.empty()
.with
in interface MutableObjectShortMapFactory
public <K> MutableObjectShortMap<K> ofInitialCapacity(int capacity)
MutableObjectShortMapFactory
MutableObjectShortMapFactory.empty()
. but takes in an initial capacityofInitialCapacity
in interface MutableObjectShortMapFactory
public <K> MutableObjectShortMap<K> withInitialCapacity(int capacity)
MutableObjectShortMapFactory
MutableObjectShortMapFactory.empty()
. but takes in an initial capacitywithInitialCapacity
in interface MutableObjectShortMapFactory
public <K> MutableObjectShortMap<K> ofAll(ObjectShortMap<? extends K> map)
MutableObjectShortMapFactory
ofAll
in interface MutableObjectShortMapFactory
public <K> MutableObjectShortMap<K> withAll(ObjectShortMap<? extends K> map)
withAll
in interface MutableObjectShortMapFactory
public <T,K> MutableObjectShortMap<K> from(Iterable<T> iterable, Function<? super T,? extends K> keyFunction, ShortFunction<? super T> valueFunction)
MutableObjectShortMapFactory
MutableObjectShortMap
from an Iterable<T>
by applying keyFunction
and valueFunction
.from
in interface MutableObjectShortMapFactory
Copyright © 2004–2019. All rights reserved.