Package ome.units.quantity
Class Angle
- java.lang.Object
-
- ome.units.quantity.Quantity
-
- ome.units.quantity.Angle
-
- All Implemented Interfaces:
Comparable<Angle>
public class Angle extends Quantity implements Comparable<Angle>
Angle quantity.- Since:
- 5.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Angle other)
Check quantities for equality.boolean
equals(Object other)
Check quantities for equality.int
hashCode()
String
toString()
Unit<Angle>
unit()
Get the unit for this quantity.Number
value()
Get the numerical value of this quantity.Number
value(Unit<Angle> inUnit)
Perform a unit conversion.
-
-
-
Method Detail
-
value
public Number value()
Description copied from class:Quantity
Get the numerical value of this quantity.
-
value
public Number value(Unit<Angle> inUnit)
Perform a unit conversion.- Parameters:
inUnit
- the unit to convert to.- Returns:
- the current quantity value converted to the specified unit, or null if the conversion is not possible.
-
equals
public boolean equals(Object other)
Check quantities for equality. Unit conversion will be performed when required to convert into the unit system of this quantity in order to perform the comparison. Note that floating point comparison is dangerous. Do not use this method.
-
compareTo
public int compareTo(Angle other)
Check quantities for equality. Unit conversion will be performed when required to convert into the unit system of this quantity in order to perform the comparison. Note that floating point comparison is dangerous. Do not use this method.- Specified by:
compareTo
in interfaceComparable<Angle>
- Returns:
- true if equal, false if not equal.
-
-