Package javax.time.calendar
Class LocalTime.Overflow
java.lang.Object
javax.time.calendar.LocalTime.Overflow
- Enclosing class:
LocalTime
The result of addition to a
LocalTime
allowing the expression of
any overflow in days.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this object to another.long
Gets the days overflowing from the calculation.Gets the time that was the result of the calculation.int
hashCode()
Returns a suitable hash code.toLocalDateTime
(LocalDate date) Creates aLocalDateTime
from the specified date and this instance.toString()
Returns a string description of this instance.
-
Field Details
-
time
The time after the addition. -
days
private final long daysThe overflow in days.
-
-
Constructor Details
-
Overflow
Constructor.- Parameters:
time
- theLocalTime
after the addition, not nulldays
- the overflow in days
-
-
Method Details
-
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
Creates aLocalDateTime
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
Compares this object to another. -
hashCode
public int hashCode()Returns a suitable hash code. -
toString
Returns a string description of this instance.
-