|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Quantity<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 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. |
| 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.
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||