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