|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.model.csct.units.Unit
public final class Unit
Placeholder for future Unit
class. This skeleton will be removed when the real
classes (from JSR-108: Units specification)
will be publicly available.
IMPORTANT: future version will NOT be compatible will this one. Remind, this is a
temporary class!
Field Summary | |
---|---|
static Unit |
BRITISHYARD
British yard; unit of length. |
static Unit |
DAY
Unit of time. |
static Unit |
DEGREE
Unit of angle. |
static Unit |
METRE
Base unit of length. |
static Unit |
MILLISECOND
Unit of time. |
static Unit |
SECOND
Base unit of time. |
Method Summary | |
---|---|
boolean |
canConvert(Unit other)
Check if amount of the specified unit can be converted into amount of this unit. |
double |
convert(double value,
Unit unit)
Convert a value from one unit to an other. |
boolean |
equals(Object object)
Compare this unit symbol with the specified object for equality. |
static Unit |
get(String symbol)
Returns an unit instance. |
int |
hashCode()
Returns a hash code value. |
String |
toString()
Returns a string representation of this unit's symbol. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Unit DEGREE
public static final Unit METRE
public static final Unit BRITISHYARD
public static final Unit SECOND
public static final Unit MILLISECOND
public static final Unit DAY
Method Detail |
---|
public static Unit get(String symbol)
public boolean canConvert(Unit other)
public double convert(double value, Unit unit)
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net