public class Length extends Quantity implements Comparable<Length>
| Constructor and Description |
|---|
Length(Number inValue,
Unit<Length> inUnit)
Create a Length.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Length other)
Check quantities for equality.
|
boolean |
equals(Object other)
Check quantities for equality.
|
int |
hashCode() |
String |
toString() |
Unit<Length> |
unit()
Get the unit for this quantity.
|
Number |
value()
Get the numerical value of this quantity.
|
Number |
value(Unit<Length> inUnit)
Perform a unit conversion.
|
public Number value()
Quantitypublic Number value(Unit<Length> inUnit)
inUnit - the unit to convert to.public boolean equals(Object other)
public int compareTo(Length other)
compareTo in interface Comparable<Length>Copyright © 2006–2018 Open Microscopy Environment. All rights reserved.