Package lumis.portal.bigdata.query
Class Distance
- java.lang.Object
-
- lumis.portal.bigdata.query.Distance
-
@StableMinor(version="14.0", sinceVersion="9.0") public class Distance extends Object
Represents a distance with an amount and adistance unit
.- Since:
- 9.0.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Constructor Description Distance(double amount, DistanceUnit unit)
Creates a new distance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAmount()
Returns the amount.DistanceUnit
getUnit()
Returns the unit.String
toString()
-
-
-
Constructor Detail
-
Distance
public Distance(double amount, DistanceUnit unit)
Creates a new distance.- Parameters:
amount
- the amount of the distance. Must be a non-negative non-infinity number.unit
- the distance unit. Must not benull
.- Since:
- 9.0.0
-
-
Method Detail
-
getAmount
public double getAmount()
Returns the amount.- Returns:
- the amount
- Since:
- 9.0.0
-
getUnit
public DistanceUnit getUnit()
Returns the unit.- Returns:
- the unit
- Since:
- 9.0.0
-
-