Class Distance


  • public final class Distance
    extends java.lang.Object
    Represents a distance which contains a value and its units.
    Since:
    100.3.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LinearUnit getUnit()
      Gets the unit of the value.
      double getValue()
      Gets the value of the distance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getValue

        public double getValue()
        Gets the value of the distance.
        Returns:
        the value of the distance
        Since:
        100.3.0
      • getUnit

        public LinearUnit getUnit()
        Gets the unit of the value.
        Returns:
        the unit of the value
        Since:
        100.3.0