|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectNumber
Measure
public final class Measure
A scalar with an unit.
modules/library/referencing (gt-referencing.jar)
Constructor Summary | |
---|---|
Measure(double value,
Unit<?> unit)
Creates a new measure with the specified value and unit. |
Method Summary | |
---|---|
byte |
byteValue()
Returns the scalar value. |
double |
doubleValue()
Returns the scalar value. |
boolean |
equals(Object object)
Compares this measure with the specified object for equality. |
float |
floatValue()
Returns the scalar value. |
Unit<?> |
getUnit()
Returns the unit. |
int |
hashCode()
Returns a hash code value for this measure. |
int |
intValue()
Returns the scalar value. |
long |
longValue()
Returns the scalar value. |
short |
shortValue()
Returns the scalar value. |
String |
toString()
Returns a string representation of this measure. |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Measure(double value, Unit<?> unit)
value
- The value.unit
- The unit of measurement for the given value.Method Detail |
---|
public double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
public long longValue()
longValue
in class Number
public int intValue()
intValue
in class Number
public short shortValue()
shortValue
in class Number
public byte byteValue()
byteValue
in class Number
public Unit<?> getUnit()
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
object
- The object to compare with this measure.
true
if the given object is equals to this measure.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |