Class Duration

  • All Implemented Interfaces:
    ObjectValue

    public class Duration
    extends java.lang.Object
    implements ObjectValue
    • Constructor Summary

      Constructors 
      Constructor Description
      Duration()
      Default constructor for serialization
      Duration​(java.lang.Boolean negative, java.lang.Boolean elapsed, java.lang.Double weeks, java.lang.Double days, java.lang.Double hours, java.lang.Double minutes, java.lang.Double seconds, java.lang.Double milliseconds)
      Constructor with all possible attributes specified.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double getDays()
      Get the number of days for this duration.
      java.lang.Boolean getElapsed()
      Indicates this duration represents elapsed time, which ignores non-working time
      java.lang.Double getHours()
      Get the number of hours for this duration.
      java.lang.Double getMilliseconds()
      Get the number of milliseconds for this duration.
      java.lang.Double getMinutes()
      Get the number of minutes for this duration.
      java.lang.Boolean getNegative()
      Get flag indicating whether the lag is negative(true) or positive(false)
      ObjectValueType getObjectType()
      "DURATION"
      java.lang.Double getSeconds()
      Get the number of seconds for this duration.
      java.lang.Double getWeeks()
      Get the number of weeks in duration.
      Duration setDays​(java.lang.Double days)
      Set the number of days for this duration.
      Duration setElapsed​(java.lang.Boolean elapsed)
      Set flag indicating this duration represents elapsed time.
      Duration setHours​(java.lang.Double hours)
      Set the number of hours for this duration.
      Duration setMilliseconds​(java.lang.Double milliseconds)
      Set the number of milliseconds for this duration.
      Duration setMinutes​(java.lang.Double minutes)
      Set the number of minutes for this duration.
      Duration setNegative​(java.lang.Boolean negative)
      Set flag indicating whether the lag is negative(true) or positive(false)
      Duration setSeconds​(java.lang.Double seconds)
      Set the number of seconds for this duration.
      Duration setWeeks​(java.lang.Double weeks)
      Set the number of weeks in duration.
      • Methods inherited from class java.lang.Object

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

      • Duration

        public Duration()
        Default constructor for serialization
      • Duration

        public Duration​(java.lang.Boolean negative,
                        java.lang.Boolean elapsed,
                        java.lang.Double weeks,
                        java.lang.Double days,
                        java.lang.Double hours,
                        java.lang.Double minutes,
                        java.lang.Double seconds,
                        java.lang.Double milliseconds)
        Constructor with all possible attributes specified.
    • Method Detail

      • getNegative

        public java.lang.Boolean getNegative()
        Get flag indicating whether the lag is negative(true) or positive(false)
        Returns:
        negative
      • setNegative

        public Duration setNegative​(java.lang.Boolean negative)
        Set flag indicating whether the lag is negative(true) or positive(false)
      • getElapsed

        public java.lang.Boolean getElapsed()
        Indicates this duration represents elapsed time, which ignores non-working time
      • setElapsed

        public Duration setElapsed​(java.lang.Boolean elapsed)
        Set flag indicating this duration represents elapsed time.
      • getWeeks

        public java.lang.Double getWeeks()
        Get the number of weeks in duration.
      • setWeeks

        public Duration setWeeks​(java.lang.Double weeks)
        Set the number of weeks in duration.
      • getDays

        public java.lang.Double getDays()
        Get the number of days for this duration.
        Returns:
        days
      • setDays

        public Duration setDays​(java.lang.Double days)
        Set the number of days for this duration.
      • getHours

        public java.lang.Double getHours()
        Get the number of hours for this duration.
        Returns:
        hours
      • setHours

        public Duration setHours​(java.lang.Double hours)
        Set the number of hours for this duration.
      • getMinutes

        public java.lang.Double getMinutes()
        Get the number of minutes for this duration.
        Returns:
        minutes
      • setMinutes

        public Duration setMinutes​(java.lang.Double minutes)
        Set the number of minutes for this duration.
      • getSeconds

        public java.lang.Double getSeconds()
        Get the number of seconds for this duration.
        Returns:
        seconds
      • setSeconds

        public Duration setSeconds​(java.lang.Double seconds)
        Set the number of seconds for this duration.
      • getMilliseconds

        public java.lang.Double getMilliseconds()
        Get the number of milliseconds for this duration.
        Returns:
        milliseconds
      • setMilliseconds

        public Duration setMilliseconds​(java.lang.Double milliseconds)
        Set the number of milliseconds for this duration.