Float.equals

Float.equals

Class Overview | Class Members | This Package | All Packages

Syntax
public boolean equals( Object obj )
Returns
true if the objects are the same; false otherwise.
Description
Compares this object against some other object. The result is true if and only if the argument is not null and is a Float object that represents a float that has the identical bit pattern to the bit pattern of the float represented by this object.

Note that in most cases, for two instances of class Float, f1 and f2, the value of f1.equals(f2) is true if and only if

also has the value true. However, there are two exceptions:

Overrides
equals in class Object
See Also
floatToIntBits