@NotThreadSafe public class MutableFloat extends AbstractMutableNumeric<MutableFloat>
| Constructor and Description |
|---|
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()
Returns the value of the specified number as a
double, which may
involve rounding. |
boolean |
equals(Object o) |
float |
floatValue()
Returns the value of the specified number as a
float, which may
involve rounding. |
float |
getAndInc() |
MutableFloat |
getClone() |
int |
hashCode() |
float |
inc()
Increment by 1 and return the modified value.
|
float |
inc(float fDelta) |
float |
inc(Number aDelta) |
float |
incAndGet() |
int |
intValue()
Returns the value of the specified number as an
int, which may
involve rounding or truncation. |
boolean |
is0() |
boolean |
isGE0() |
boolean |
isGT0() |
boolean |
isLE0() |
boolean |
isLT0() |
long |
longValue()
Returns the value of the specified number as a
long, which may
involve rounding or truncation. |
float |
multiply(float fMultiplicand) |
float |
multiply(Number aMultiplicand) |
EChange |
set(float fValue) |
EChange |
set(Number aValue) |
String |
toString() |
onAfterChangebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsBigDecimal, getAsBigInteger, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, isNot0isEQ, isGE, isGT, isLE, isLT, isNEthisAsTbyteValue, shortValuepublic float floatValue()
INumberfloat, which may
involve rounding.floatValue in interface INumberfloatValue in class Numberfloat.public double doubleValue()
INumberdouble, which may
involve rounding.doubleValue in interface INumberdoubleValue in class Numberdouble.public int intValue()
INumberint, which may
involve rounding or truncation.public long longValue()
INumberlong, which may
involve rounding or truncation.public 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 isLT0()
true if the value is < 0public boolean isLE0()
true if the value is ≤ 0public boolean isGT0()
true if the value is > 0public boolean isGE0()
true if the value is ≥ 0public float getAndInc()
public float incAndGet()
public int compareTo(@Nonnull MutableFloat rhs)
@Nonnull public MutableFloat getClone()
Copyright © 2014–2022 Philip Helger. All rights reserved.