|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.util.comparables.UnitDistance
public class UnitDistance
A Comparable for distances between units.
Field Summary | |
---|---|
private double |
distance
|
private Unit |
unit
|
Constructor Summary | |
---|---|
UnitDistance(Unit unit,
double distance)
|
Method Summary | |
---|---|
int |
compareTo(UnitDistance o)
|
double |
getDistance()
|
Unit |
getUnit()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double distance
private Unit unit
Constructor Detail |
---|
public UnitDistance(Unit unit, double distance)
Method Detail |
---|
public int compareTo(UnitDistance o)
compareTo
in interface java.lang.Comparable<UnitDistance>
public double getDistance()
public Unit getUnit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |