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