javax.time.calendar
Interface TimeAdjuster

All Known Implementing Classes:
LocalTime

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.

An adjuster is not normally used directly. Instead it should be used as follows:

   time = time.with(adjuster);
 

This interface must be implemented with care to ensure other classes in the framework operate correctly. All implementations that can be instantiated must be final, immutable and thread-safe.

Author:
Stephen Colebourne

Method Summary
 LocalTime adjustTime(LocalTime time)
          Adjusts the input time returning the adjusted time.
 

Method Detail

adjustTime

LocalTime adjustTime(LocalTime time)
Adjusts the input time returning the adjusted time.

This is a strategy pattern that allows a range of adjustments to be made to a time.

Parameters:
time - the time to adjust, not null
Returns:
the adjusted time, not null