|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
LocalTime |
adjustTime(LocalTime time)
Adjusts the input time returning the adjusted time. |
Method Detail |
---|
LocalTime adjustTime(LocalTime time)
This is a strategy pattern that allows a range of adjustments to be made to a time.
time
- the time to adjust, not null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |