FloatValue (Java SE 19 & JDK 19) (original) (raw)
All Superinterfaces:
[Comparable](../../../../java.base/java/lang/Comparable.html "interface in java.lang")<[FloatValue](FloatValue.html "interface in com.sun.jdi")>
, [Mirror](Mirror.html "interface in com.sun.jdi")
, [PrimitiveValue](PrimitiveValue.html "interface in com.sun.jdi")
, [Value](Value.html "interface in com.sun.jdi")
Provides access to a primitive float
value in the target VM.
Since:
1.3
Method Summary
boolean
Compares the specified Object with this FloatValue for equality.int
[hashCode](#hashCode%28%29)()
Returns the hash code value for this FloatValue.float
[value](#value%28%29)()
Returns this FloatValue as a float.
Methods declared in interface com.sun.jdi.Value
[type](Value.html#type%28%29)
Method Details
value
float value()
Returns this FloatValue as a float.
Returns:
thefloat
mirrored by this object.equals
boolean equals(Object obj)
Compares the specified Object with this FloatValue for equality.
Overrides:
[equals](../../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29)
in class[Object](../../../../java.base/java/lang/Object.html "class in java.lang")
Parameters:
obj
- the reference object with which to compare.
Returns:
true if the Object is a FloatValue and if applying "==" to the two mirrored primitives would evaluate to true; false otherwise.
See Also:
* Object.hashCode()
* HashMaphashCode
int hashCode()
Returns the hash code value for this FloatValue.
Overrides:
[hashCode](../../../../java.base/java/lang/Object.html#hashCode%28%29)
in class[Object](../../../../java.base/java/lang/Object.html "class in java.lang")
Returns:
the integer hash code
See Also:
* Object.equals(java.lang.Object)
* System.identityHashCode(java.lang.Object)