|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectNumber
Measure
@Immutable public final class Measure
A scalar with a unit.
| utility/geotk-utility (download) | View source code for this class |
| 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 Numberpublic float floatValue()
floatValue in class Numberpublic long longValue()
longValue in class Numberpublic int intValue()
intValue in class Numberpublic short shortValue()
shortValue in class Numberpublic byte byteValue()
byteValue in class Numberpublic Unit<?> getUnit()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - The object to compare with this measure.
true if the given object is equal 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 | |||||||||