Class LocalTime.Overflow

  • Enclosing class:
    LocalTime

    public static final class LocalTime.Overflow
    extends Object
    The result of addition to a LocalTime allowing the expression of any overflow in days.
    • Method Detail

      • getResultTime

        public LocalTime getResultTime()
        Gets the time that was the result of the calculation.
        Returns:
        the time, never null
      • getOverflowDays

        public long getOverflowDays()
        Gets the days overflowing from the calculation.
        Returns:
        the overflow days
      • toLocalDateTime

        public LocalDateTime toLocalDateTime​(LocalDate date)
        Creates a LocalDateTime from the specified date and this instance.
        Parameters:
        date - the date to use, not null
        Returns:
        the combination of the date, time and overflow in days, never null
      • equals

        public boolean equals​(Object obj)
        Compares this object to another.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare to
        Returns:
        true if equal
      • hashCode

        public int hashCode()
        Returns a suitable hash code.
        Overrides:
        hashCode in class Object
        Returns:
        the hash code
      • toString

        public String toString()
        Returns a string description of this instance.
        Overrides:
        toString in class Object
        Returns:
        the string, never null