public class IdentityEqualsDirtyPredicate extends java.lang.Object implements IsDirtyPredicate
IdentityEqualsDirtyPredicate is an IsDirtyPredicate strategy interface implementation
that determines whether the new value is dirty by comparing the new value
with the old value using the identity operator (==).IsDirtyPredicate| Modifier and Type | Field and Description |
|---|---|
static IdentityEqualsDirtyPredicate |
INSTANCE |
ALWAYS_DIRTY, NEVER_DIRTY| Constructor and Description |
|---|
IdentityEqualsDirtyPredicate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDirty(java.lang.Object oldValue,
java.lang.Object newValue)
Determines whether the
new value is dirty by comparing the new value
with the old value using the identity operator (==). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, orThenpublic static final IdentityEqualsDirtyPredicate INSTANCE
public boolean isDirty(@Nullable
java.lang.Object oldValue,
@Nullable
java.lang.Object newValue)
new value is dirty by comparing the new value
with the old value using the identity operator (==).
This method is null-safe.isDirty in interface IsDirtyPredicateoldValue - Object referring to the previous value.newValue - Object referring to the new value.new value is dirty by comparing
the new value with the old value using the identity operator (==).