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