Interface Offset<V>
- Type Parameters:
V- the value to which the offset can be applied
- All Superinterfaces:
Function<V,V>, UnaryOperator<V>
- All Known Implementing Classes:
Offset.DefaultOffset, Offset.DurationOffset, Offset.InstantOffset, Offset.TemporalOffset
Encapsulates an offset that can be applied to a value.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA default offset implementation.static classA duration-based offset implementation.static classAn instant-based offset implementation.static classA temporal offset implementation. -
Method Summary
Modifier and TypeMethodDescriptionforDuration(Duration offset) Creates a duration-based offset for the specified duration.forInstant(Duration offset) Creates an instant-based offset for the specified duration.booleanisZero()Returns true if this offset is zero, false otherwise.
-
Method Details
-
isZero
boolean isZero()Returns true if this offset is zero, false otherwise.- Returns:
- true if this offset is zero, false otherwise.
-
forDuration
-
forInstant
-