@NotThreadSafe public final class MutableFloat extends Number implements IMutableNumeric<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(Float aValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MutableFloat rhs) |
float |
dec() |
float |
dec(float fDelta) |
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
Float |
getAsFloat() |
MutableFloat |
getClone() |
int |
hashCode() |
float |
inc()
Increment by 1 and return the modified value.
|
float |
inc(float fDelta) |
int |
intValue() |
boolean |
is0() |
boolean |
isGreater0() |
boolean |
isGreaterOrEqual0() |
boolean |
isNot0() |
boolean |
isSmaller0() |
boolean |
isSmallerOrEqual0() |
long |
longValue() |
EChange |
set(float fValue) |
String |
toString() |
byteValue, shortValuepublic 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 boolean is0()
is0 in interface IMutableNumeric<MutableFloat>true if the value is 0public boolean isNot0()
isNot0 in interface IMutableNumeric<MutableFloat>true if the value is not 0public boolean isSmaller0()
isSmaller0 in interface IMutableNumeric<MutableFloat>true if the value is < 0public boolean isSmallerOrEqual0()
isSmallerOrEqual0 in interface IMutableNumeric<MutableFloat>true if the value is ≤ 0public boolean isGreater0()
isGreater0 in interface IMutableNumeric<MutableFloat>true if the value is > 0public boolean isGreaterOrEqual0()
isGreaterOrEqual0 in interface IMutableNumeric<MutableFloat>true if the value is ≥ 0public int compareTo(@Nonnull MutableFloat rhs)
compareTo in interface Comparable<MutableFloat>@Nonnull public MutableFloat getClone()
getClone in interface ICloneable<MutableFloat>Copyright © 2006–2014 phloc systems. All rights reserved.