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