@StableMinor(version="12.3", sinceVersion="9.0") public class Distance extends Object
distance unit
.Constructor and Description |
---|
Distance(double amount,
DistanceUnit unit)
Creates a new distance.
|
Modifier and Type | Method and Description |
---|---|
double |
getAmount()
Returns the amount.
|
DistanceUnit |
getUnit()
Returns the unit.
|
String |
toString() |
public Distance(double amount, DistanceUnit unit)
amount
- the amount of the distance. Must be a non-negative non-infinity number.unit
- the distance unit. Must not be null
.public double getAmount()
public DistanceUnit getUnit()
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.