com.twitter.common.quantity
Interface Unit<U extends Unit<U>>

Type Parameters:
U - the type of the concrete unit implementation
All Known Implementing Classes:
Data, Time

public interface Unit<U extends Unit<U>>

Represents a unit hierarchy for a given unit of measure; eg: time. Instances represent specific units from the hierarchy; eg: seconds.


Method Summary
 double multiplier()
          Returns the weight of this unit relative to other units in the same hierarchy.
 

Method Detail

multiplier

double multiplier()
Returns the weight of this unit relative to other units in the same hierarchy. Typically the smallest unit in the hierarchy returns 1, but this need not be the case. It is only required that each unit of the hierarchy return a multiplier relative to a common base unit for the hierarchy.