Class 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 unit
      int getValue()
      integer value to use in calculations.
      Distance setText​(java.lang.String text)  
      Distance setValue​(int value)  
      • Methods inherited from class java.lang.Object

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

      • Distance

        public Distance()
    • 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)