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