org.ka2ddo.yaac.osm
Interface QuantityUnitMeasure<T extends java.lang.Enum>

All Known Implementing Classes:
Length, Weight

public interface QuantityUnitMeasure<T extends java.lang.Enum>

This interface tags a class that contains a magnitude value and unit thereof. All such classes must provide a one-arg constructor that takes a float primitive.


Method Summary
 float getMagnitude()
           
 float getMagnitude(T unit)
           
 float getMagnitudeInDefaultUnit()
           
 T getUnit()
           
 

Method Detail

getUnit

T getUnit()

getMagnitude

float getMagnitude()

getMagnitudeInDefaultUnit

float getMagnitudeInDefaultUnit()

getMagnitude

float getMagnitude(T unit)