Dimension Class

Dimension class

Provides the base class for dimensions. The general term ‘dimension’ refers to a number with a unit attached to it, and are denoted by UnitType.

public abstract class Dimension : Numeric

Properties

NameDescription
getUnitType Gets the unit type of the Unit.

Methods

NameDescription
compareTo(Numeric)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
equals(object)Determines whether the specified Object, is equal to this instance.
equals(Unit)Determines whether the specified Unit, is equal to this instance.
getHashCode()Returns a hash code for this instance.
getValue()Gets the unit value.
getValue(UnitType)Gets the value converted to the specified UnitType.
toString()Returns a String that represents this instance.

See Also