Package javax.time.calendar
Interface TimeAdjuster
-
- All Known Implementing Classes:
LocalDateTime
,LocalTime
,OffsetDateTime
,OffsetTime
public interface TimeAdjuster
Strategy for adjusting a time.This interface provides a common way to access many different time adjustments. These could be simple, such as simply setting the hour field, or complex, such as adjusting the time to the end of the working day.
TimeAdjuster is an interface and must be implemented with care to ensure other classes in the framework operate correctly. All instantiable implementations must be final, immutable and thread-safe.
- Author:
- Stephen Colebourne
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocalTime
adjustTime(LocalTime time)
Adjusts the input time returning the adjusted time.
-