Class OffsetValue.DefaultOffsetValue<O,V>
- java.lang.Object
-
- org.wildfly.clustering.ee.cache.offset.Value.AbstractValue<V>
-
- org.wildfly.clustering.ee.cache.offset.OffsetValue.DefaultOffsetValue<O,V>
-
- All Implemented Interfaces:
Supplier<V>,OffsetValue<V>,Value<V>
- Direct Known Subclasses:
OffsetValue.TemporalOffsetValue
- Enclosing interface:
- OffsetValue<V>
public static class OffsetValue.DefaultOffsetValue<O,V> extends Value.AbstractValue<V> implements OffsetValue<V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.wildfly.clustering.ee.cache.offset.OffsetValue
OffsetValue.DefaultOffsetValue<O,V>, OffsetValue.DurationOffsetValue, OffsetValue.InstantOffsetValue, OffsetValue.TemporalOffsetValue<V>
-
Nested classes/interfaces inherited from interface org.wildfly.clustering.ee.cache.offset.Value
Value.AbstractValue<V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VgetBasis()Returns the basis from which the associated offset will be applied.Offset<V>getOffset()The current offset.OffsetValue<V>rebase()Returns a new offset value based on the current value.voidset(V value)Updates the referenced value.voidsetOffset(Offset<V> offset)Sets the current offset.-
Methods inherited from class org.wildfly.clustering.ee.cache.offset.Value.AbstractValue
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.ee.cache.offset.OffsetValue
get
-
-
-
-
Method Detail
-
getBasis
public V getBasis()
Description copied from interface:OffsetValueReturns the basis from which the associated offset will be applied.- Specified by:
getBasisin interfaceOffsetValue<O>- Returns:
- the basis from which the associated offset will be applied.
-
set
public void set(V value)
Description copied from interface:ValueUpdates the referenced value.
-
setOffset
public void setOffset(Offset<V> offset)
Description copied from interface:OffsetValueSets the current offset.- Specified by:
setOffsetin interfaceOffsetValue<O>- Parameters:
offset- an offset
-
getOffset
public Offset<V> getOffset()
Description copied from interface:OffsetValueThe current offset.- Specified by:
getOffsetin interfaceOffsetValue<O>- Returns:
- an offset
-
rebase
public OffsetValue<V> rebase()
Description copied from interface:OffsetValueReturns a new offset value based on the current value.- Specified by:
rebasein interfaceOffsetValue<O>- Returns:
- a new offset value
-
-