public interface FloatShortPair
| Modifier and Type | Field and Description |
|---|---|
static FloatShortPair |
EMPTY
Empty Reference for Immutable Pairs
|
| Modifier and Type | Method and Description |
|---|---|
float |
getFloatKey() |
short |
getShortValue() |
static FloatShortPair |
mutable() |
static FloatShortPair |
mutable(float key,
short value) |
static FloatShortPair |
mutable(FloatShortPair pair) |
static FloatShortPair |
mutableKey(float key) |
static FloatShortPair |
mutableValue(short value) |
static FloatShortPair |
of() |
static FloatShortPair |
of(float key,
short value) |
static FloatShortPair |
of(FloatShortPair pair) |
static FloatShortPair |
ofKey(float key) |
static FloatShortPair |
ofValue(short value) |
FloatShortPair |
set(float key,
short value)
Sets key and value of the Pair
|
FloatShortPair |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
FloatShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
static final FloatShortPair EMPTY
static FloatShortPair of()
static FloatShortPair ofKey(float key)
key - the key that should be in the pairstatic FloatShortPair ofValue(short value)
value - the value that should be in the pairstatic FloatShortPair of(float key, short value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic FloatShortPair of(FloatShortPair pair)
pair - the Pair that should be immutably copiedstatic FloatShortPair mutable()
static FloatShortPair mutableKey(float key)
key - the key that should be in the pairstatic FloatShortPair mutableValue(short value)
value - the value that should be in the pairstatic FloatShortPair mutable(float key, short value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic FloatShortPair mutable(FloatShortPair pair)
pair - the Pair that should be copiedFloatShortPair setFloatKey(float key)
key - the key that should be set.float getFloatKey()
FloatShortPair setShortValue(short value)
value - the value that should be set.short getShortValue()
FloatShortPair set(float key, short value)
key - the key that should be set.value - the value that should be set.FloatShortPair shallowCopy()