@NotThreadSafe public class MutableFloat extends AbstractMutableNumeric<MutableFloat>
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_VALUE
The default value if the default constructor is used.
|
| Constructor and Description |
|---|
MutableFloat()
Initialize with default value 0.0f
|
MutableFloat(float fValue) |
MutableFloat(Number aValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MutableFloat rhs) |
float |
dec() |
float |
dec(float fDelta) |
float |
dec(Number aDelta) |
float |
divide(float fDivisor) |
float |
divide(Number aDivisor) |
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
MutableFloat |
getClone() |
int |
hashCode() |
float |
inc()
Increment by 1 and return the modified value.
|
float |
inc(float fDelta) |
float |
inc(Number aDelta) |
int |
intValue() |
boolean |
is0() |
boolean |
isGreater0() |
boolean |
isGreaterOrEqual0() |
boolean |
isSmaller0() |
boolean |
isSmallerOrEqual0() |
long |
longValue() |
float |
multiply(float fMultiplicand) |
float |
multiply(Number aMultiplicand) |
EChange |
set(float fValue) |
EChange |
set(Number aValue) |
String |
toString() |
getAsBigDecimal, getAsBigInteger, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, onAfterChangebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitisNot0thisAsTpublic static final float DEFAULT_VALUE
public MutableFloat()
public MutableFloat(float fValue)
public float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic float inc()
public float inc(float fDelta)
public float dec()
public float dec(float fDelta)
public float divide(float fDivisor)
public float multiply(float fMultiplicand)
public boolean is0()
true if the value is 0public boolean isSmaller0()
true if the value is < 0public boolean isSmallerOrEqual0()
true if the value is ≤ 0public boolean isGreater0()
true if the value is > 0public boolean isGreaterOrEqual0()
true if the value is ≥ 0public int compareTo(@Nonnull MutableFloat rhs)
@Nonnull public MutableFloat getClone()
Copyright © 2014–2016 Philip Helger. All rights reserved.