T - the keyType of elements maintained by this Collectionpublic interface ObjectFloatPair<T>
| Modifier and Type | Field and Description |
|---|---|
static ObjectFloatPair<?> |
EMPTY
Empty Reference for Immutable Pairs
|
| Modifier and Type | Method and Description |
|---|---|
float |
getFloatValue() |
T |
getKey() |
static <T> ObjectFloatPair<T> |
mutable() |
static <T> ObjectFloatPair<T> |
mutable(ObjectFloatPair<T> pair) |
static <T> ObjectFloatPair<T> |
mutable(T key,
float value) |
static <T> ObjectFloatPair<T> |
mutableKey(T key) |
static <T> ObjectFloatPair<T> |
mutableValue(float value) |
static <T> ObjectFloatPair<T> |
of() |
static <T> ObjectFloatPair<T> |
of(ObjectFloatPair<T> pair) |
static <T> ObjectFloatPair<T> |
of(T key,
float value) |
static <T> ObjectFloatPair<T> |
ofKey(T key) |
static <T> ObjectFloatPair<T> |
ofValue(float value) |
ObjectFloatPair<T> |
set(T key,
float value)
Sets key and value of the Pair
|
ObjectFloatPair<T> |
setFloatValue(float value)
Sets the Value of the Pair.
|
ObjectFloatPair<T> |
setKey(T key)
Sets the Key of the Pair.
|
ObjectFloatPair<T> |
shallowCopy()
Clones the Pair if it is mutable.
|
static final ObjectFloatPair<?> EMPTY
static <T> ObjectFloatPair<T> of()
T - the keyType of elements maintained by this Collectionstatic <T> ObjectFloatPair<T> ofKey(T key)
T - the keyType of elements maintained by this Collectionkey - the key that should be in the pairstatic <T> ObjectFloatPair<T> ofValue(float value)
T - the keyType of elements maintained by this Collectionvalue - the value that should be in the pairstatic <T> ObjectFloatPair<T> of(T key, float value)
T - the keyType of elements maintained by this Collectionkey - the key that should be in the pairvalue - the value that should be in the pairstatic <T> ObjectFloatPair<T> of(ObjectFloatPair<T> pair)
T - the keyType of elements maintained by this Collectionpair - the Pair that should be immutably copiedstatic <T> ObjectFloatPair<T> mutable()
T - the keyType of elements maintained by this Collectionstatic <T> ObjectFloatPair<T> mutableKey(T key)
T - the keyType of elements maintained by this Collectionkey - the key that should be in the pairstatic <T> ObjectFloatPair<T> mutableValue(float value)
T - the keyType of elements maintained by this Collectionvalue - the value that should be in the pairstatic <T> ObjectFloatPair<T> mutable(T key, float value)
T - the keyType of elements maintained by this Collectionkey - the key that should be in the pairvalue - the value that should be in the pairstatic <T> ObjectFloatPair<T> mutable(ObjectFloatPair<T> pair)
T - the keyType of elements maintained by this Collectionpair - the Pair that should be copiedObjectFloatPair<T> setKey(T key)
key - the key that should be set.T getKey()
ObjectFloatPair<T> setFloatValue(float value)
value - the value that should be set.float getFloatValue()
ObjectFloatPair<T> set(T key, float value)
key - the key that should be set.value - the value that should be set.ObjectFloatPair<T> shallowCopy()