|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UnitEnum<T>
This is a tag interface identifying that the tagged enumeration is a definition of units of measure of some sort.
Method Summary | |
---|---|
float |
from(T other)
Get the multiplicative conversion factor to convert a value from the specified units to this unit. |
float |
getOffset(T other)
Get the additive offset to convert a value from the specified unit to this unit. |
Method Detail |
---|
float from(T other)
other
- another T representing the existing units of a value
float getOffset(T other)
other
- another T representing the existing units of a value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |