public interface MeasureEnum<T extends MeasureEnum>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAbbreviation()
Returns the most common abbreviation for this measure
|
java.util.Collection<java.lang.String> |
getAbbreviations()
Returns a set of all possible abbreviations for this unit
|
T |
getBaseUnit()
Returns the base unit used as a base in this type
|
RationalNumber |
getConversionRateFromBase()
Gets a rational number that represents the conversion rate from the a base size to this size.
|
RationalNumber |
getConversionRateTo(T otherSize)
Gets a rational number that represents the conversion rate from the a base size to this size.
|
RationalNumber |
getConversionRateToBase()
Gets a rational number that represents the conversion rate from the given size to the base measure for this size.
|
MeasurementSystem |
getMeasurementSystem()
Returns the measurement system this is a part of
|
java.lang.String |
getName()
Returns the name of this measure.
|
java.lang.String |
getPluralName()
Returns the name of this measure in plural.
|
@NotNull T getBaseUnit()
@Nullable java.lang.String getAbbreviation()
@NotNull java.util.Collection<java.lang.String> getAbbreviations()
java.lang.String getName()
java.lang.String getPluralName()
RationalNumber getConversionRateToBase()
@NotNull RationalNumber getConversionRateFromBase()
@NotNull RationalNumber getConversionRateTo(T otherSize)
otherSize
- The size to convert toMeasurementSystem getMeasurementSystem()