Interface IsDirtyPredicate
- All Known Implementing Classes:
DeltaAwareDirtyPredicate
,EqualsDirtyPredicate
,IdentityEqualsDirtyPredicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
IsDirtyPredicate
is a strategy interface used to configure Spring Session on how to evaluate application
domain objects to determine whether they are dirty or not.- Since:
- 2.1.2
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault IsDirtyPredicate
andThen
(IsDirtyPredicate other) Composes 2IsDirtyPredicate
objects using the logical AND operator.boolean
default IsDirtyPredicate
orThen
(IsDirtyPredicate other) Composes 2IsDirtyPredicate
objects using the logical OR operator.
-
Field Details
-
ALWAYS_DIRTY
-
NEVER_DIRTY
-
-
Method Details
-
isDirty
-
andThen
Composes 2IsDirtyPredicate
objects using the logical AND operator. Theother
IsDirtyPredicate
is applied after thisIsDirtyPredicate
in theisDirty(Object, Object)
comparison evaluation. This composition is null-safe and returns thisIsDirtyPredicate
ifother
is null.- Parameters:
other
-IsDirtyPredicate
composed with thisIsDirtyPredicate
.- Returns:
- an
IsDirtyPredicate
composition consisting of thisIsDirtyPredicate
composed with theother
IsDirtyPredicate
using the logical AND operator. Returns thisIsDirtyPredicate
ifother
is null. - See Also:
-
orThen
Composes 2IsDirtyPredicate
objects using the logical OR operator. Theother
IsDirtyPredicate
is applied after thisIsDirtyPredicate
in theisDirty(Object, Object)
comparison evaluation. This composition is null-safe and returns thisIsDirtyPredicate
ifother
is null.- Parameters:
other
-IsDirtyPredicate
composed with thisIsDirtyPredicate
.- Returns:
- an
IsDirtyPredicate
composition consisting of thisIsDirtyPredicate
composed with theother
IsDirtyPredicate
using the logical OR operator. Returns thisIsDirtyPredicate
ifother
is null. - See Also:
-