Package org.neshan.common.model
Class Distance
- java.lang.Object
-
- org.neshan.common.model.Distance
-
public class Distance extends java.lang.Object
contains a number that usually represents a distance or a duration.
-
-
Constructor Summary
Constructors Constructor Description Distance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Readable text to represent the value that usually contains number and unitint
getValue()
integer value to use in calculations.Distance
setText(java.lang.String text)
Distance
setValue(int value)
-
-
-
Method Detail
-
getText
public java.lang.String getText()
Readable text to represent the value that usually contains number and unit
-
setText
public Distance setText(java.lang.String text)
-
getValue
public int getValue()
integer value to use in calculations.
-
setValue
public Distance setValue(int value)
-
-