Class DistanceUnit.Distance
- java.lang.Object
-
- org.gbif.api.model.occurrence.geo.DistanceUnit.Distance
-
- All Implemented Interfaces:
Comparable<DistanceUnit.Distance>
- Enclosing class:
- DistanceUnit
public static class DistanceUnit.Distance extends Object implements Comparable<DistanceUnit.Distance>
-
-
Field Summary
Fields Modifier and Type Field Description DistanceUnit
unit
double
value
-
Constructor Summary
Constructors Constructor Description Distance(double value, DistanceUnit unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DistanceUnit.Distance o)
boolean
equals(Object obj)
DistanceUnit
getUnit()
double
getValue()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
value
public final double value
-
unit
public final DistanceUnit unit
-
-
Constructor Detail
-
Distance
public Distance(double value, DistanceUnit unit)
-
-
Method Detail
-
getValue
public double getValue()
-
getUnit
public DistanceUnit getUnit()
-
compareTo
public int compareTo(DistanceUnit.Distance o)
- Specified by:
compareTo
in interfaceComparable<DistanceUnit.Distance>
-
-