T
- the type of the stateful object@API(status=EXPERIMENTAL,
since="1.7.0")
public interface ChangeDetector<T>
Modifier and Type | Method and Description |
---|---|
static <T> ChangeDetector<T> |
alwaysTrue() |
void |
before(T before)
Get and remember the state before it is handed to a transformer.
|
static <T> ChangeDetector<T> |
forImmutables()
A change detector that can be used for immutable types that implement an equals() method
|
boolean |
hasChanged(T after)
Determine if the state object has changed.
|
static <T> ChangeDetector<T> forImmutables()
T
- the type of the stateful object@API(status=INTERNAL) static <T> ChangeDetector<T> alwaysTrue()
void before(T before)
boolean hasChanged(T after)
after
- The state resulting from handing it to a transformer.