|
JSR-275 - Measurements and Units Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Measurable<Q extends Quantity>
This interface represents the measurable, countable, or comparable property or aspect of a thing.
| Method Summary | |
|---|---|
double |
doubleValue(Unit<Q> unit)
Returns the estimated value of this measurable quantity stated in the specified unit as a double. |
long |
longValue(Unit<Q> unit)
Returns the estimated value of this quantity stated in the specified unit as a long. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
double doubleValue(Unit<Q> unit)
double.
unit - the unit in which the measurement value is stated.
double.
long longValue(Unit<Q> unit)
throws java.lang.ArithmeticException
long.
unit - the unit in which the measurement value is stated.
long.
java.lang.ArithmeticException - if this quantity cannot be represented
as a long number in the specified unit.
|
JSR-275 - Measurements and Units Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||