com.antelmann.math
Class Measurable.Adapter
java.lang.Object
com.antelmann.math.Measurable.Adapter
- All Implemented Interfaces:
- Measurable, Serializable
- Enclosing interface:
- Measurable
public static class Measurable.Adapter
- extends Object
- implements Measurable
- See Also:
- Serialized Form
Measurable.Adapter
public Measurable.Adapter(Unit unit,
Number number)
getUnit
public Unit getUnit()
- Description copied from interface:
Measurable
- represents the unit type of this measurable entity
- Specified by:
getUnit in interface Measurable
getAmount
public Number getAmount()
- Description copied from interface:
Measurable
- represents the quantity of this measurable entity
- Specified by:
getAmount in interface Measurable
toString
public String toString()
- Overrides:
toString in class Object
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads