public static class DistanceUnit.Distance extends Object implements Comparable<DistanceUnit.Distance>
Modifier and Type | Field and Description |
---|---|
DistanceUnit |
unit |
double |
value |
Constructor and Description |
---|
Distance(double value,
DistanceUnit unit) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DistanceUnit.Distance o) |
boolean |
equals(Object obj) |
DistanceUnit |
getUnit() |
double |
getValue() |
int |
hashCode() |
String |
toString() |
public final double value
public final DistanceUnit unit
public Distance(double value, DistanceUnit unit)
public double getValue()
public DistanceUnit getUnit()
public int compareTo(DistanceUnit.Distance o)
compareTo
in interface Comparable<DistanceUnit.Distance>
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.