public final class MutableFloat extends java.lang.Number implements java.lang.Comparable<MutableFloat>, java.lang.Cloneable
float
wrapper.Modifier and Type | Field and Description |
---|---|
float |
value
The mutable value.
|
Constructor and Description |
---|
MutableFloat() |
MutableFloat(float value) |
MutableFloat(java.lang.Number number) |
MutableFloat(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
MutableFloat |
clone()
Clones object.
|
int |
compareTo(MutableFloat other)
Compares value of two same instances.
|
double |
doubleValue()
Returns the value as a double.
|
boolean |
equals(java.lang.Object obj)
Compares this object to the specified object.
|
float |
floatValue()
Returns the value as a float.
|
float |
get()
Returns mutable value.
|
int |
hashCode()
Returns a hashcode for this value.
|
int |
intValue()
Returns the value as a int.
|
boolean |
isInfinite()
Checks whether the float value is infinite.
|
boolean |
isNaN()
Checks whether the value is the special NaN value.
|
long |
longValue()
Returns the value as a long.
|
static MutableFloat |
of(float value) |
void |
set(float value)
Sets mutable value.
|
void |
set(java.lang.Number value)
Sets mutable value from a Number.
|
java.lang.String |
toString()
Stringify the value.
|
public MutableFloat()
public MutableFloat(float value)
public MutableFloat(java.lang.String value)
public MutableFloat(java.lang.Number number)
public static MutableFloat of(float value)
public float get()
public void set(float value)
public void set(java.lang.Number value)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with.true
if the objects are the same;
false
otherwise.public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
public double doubleValue()
doubleValue
in class java.lang.Number
public boolean isNaN()
public boolean isInfinite()
public int compareTo(MutableFloat other)
compareTo
in interface java.lang.Comparable<MutableFloat>
public MutableFloat clone()
clone
in class java.lang.Object
Copyright © 2003-present Jodd Team