Class WorkDuration

  • All Implemented Interfaces:
    java.io.Serializable

    public class WorkDuration
    extends java.lang.Object
    implements java.io.Serializable
    Since:
    4.2
    See Also:
    Serialized Form
    • Method Detail

      • create

        public static WorkDuration create​(int days,
                                          int hours,
                                          int minutes,
                                          int hoursInDay)
      • toWorkingDays

        public double toWorkingDays()
        Return the duration in number of working days. For instance, 3 days and 4 hours will return 3.5 days (if hoursIndDay is 8).
      • toLong

        public long toLong()
        Return the duration using the following format DDHHMM, where DD is the number of days, HH is the number of months, and MM the number of minutes. For instance, 3 days and 4 hours will return 030400 (if hoursIndDay is 8).
      • toMinutes

        public long toMinutes()
      • days

        public int days()
      • hours

        public int hours()
      • minutes

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