equals

equals(object)

Determines whether this instance and a specified object, which must also be a Unit object, have the same value.

equals(obj)
ParameterTypeDescription
objobjectThe Unit to compare to this instance.

Return Value

true

if obj is a Unit and its value is the same as this instance; otherwise, false. If obj is null, the method returns false.

See Also