Click or drag to resize

SIUnitEquals Method

Overload List
 NameDescription
Public methodEquals(IUnit) Compares this unit with another unit obj and returns true if both are equal. To be equal, the other unit has to be (i) a SI unit, and (ii) the same name. Thus, J (Joule) and Nm (Newtonmeter) are not considered equal.
Public methodEquals(Object) Determines whether the specified Object is equal to this instance.
Public methodEquals(SIUnit) Determines whether this instance and another specified SIUnit object have the same exponents for all base units. Two SI units are considered equal if the exponents are equal, independently of the unit name. This means e.g. that J (Joule), Nm, and Ws are considered equal.
Top
See Also