Class Duration


  • public class Duration
    extends java.lang.Object
    The duration of time.
    • Constructor Detail

      • Duration

        public Duration()
    • Method Detail

      • value

        public Duration value​(java.lang.Integer value)
      • getValue

        public java.lang.Integer getValue()
        Get value
        Returns:
        value
      • setValue

        public void setValue​(java.lang.Integer value)
      • getTimeUnit

        public TimeUnit getTimeUnit()
        Get timeUnit
        Returns:
        timeUnit
      • setTimeUnit

        public void setTimeUnit​(TimeUnit timeUnit)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object