@StableMinor(version="12.2", 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.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.