T
- the type of objectU
- the type of value used to update the object@FunctionalInterface public interface ValueUpdater<T,U> extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
update(T target,
U value)
Update the state of the passed target object using the passed value.
|
void update(T target, U value)
target
- the Object to update the state ofvalue
- the new value to update the state withClassCastException
- if this ValueUpdater is incompatible with
the passed target object or the value and the implementation
requires the passed object or the value to be of a
certain typeWrapperException
- if this ValueUpdater encounters a checked
exception in the course of updating the target objectIllegalArgumentException
- if this ValueUpdater cannot handle
the passed target object or value for any other reason;
an implementor should include a descriptive message