Unit<T extends Unit<T> > class
abstract
A contract for all unit enums.
Each unit enum (e.g., PressureUnit
, LengthUnit
) must implement this
interface to provide a way to get a conversion factor to another unit
of the same type.
T
is the specific unit enum type itself (e.g., PressureUnit
).
Constructors
- Unit()
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited