Package org.springframework.data.util
Interface Predicates
public interface Predicates
Utility methods to work with
Predicate
s.- Since:
- 2.7
- Author:
- Mark Paluch
-
Field Summary
Modifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isExcluded
(Constructor<?> candidate) Whether to not consider aConstructor
.static <T> Predicate<T>
isFalse()
APredicate
that yields alwaysfalse
.static boolean
isIncluded
(Constructor<?> candidate) Whether to consider aConstructor
.static <T> Predicate<T>
isTrue()
APredicate
that yields alwaystrue
.static <T> Predicate<T>
Returns aPredicate
that represents the logical negation ofpredicate
.
-
Field Details
-
IS_ENUM_MEMBER
-
IS_HIBERNATE_MEMBER
-
IS_OBJECT_MEMBER
-
IS_JAVA
-
IS_NATIVE
-
IS_PRIVATE
-
IS_PROTECTED
-
IS_PUBLIC
-
IS_SYNTHETIC
-
IS_KOTLIN
-
IS_STATIC
-
IS_BRIDGE_METHOD
-
-
Method Details
-
isTrue
APredicate
that yields alwaystrue
.- Returns:
- a
Predicate
that yields alwaystrue
.
-
isFalse
APredicate
that yields alwaysfalse
.- Returns:
- a
Predicate
that yields alwaysfalse
.
-
negate
Returns aPredicate
that represents the logical negation ofpredicate
.- Returns:
- a
Predicate
that represents the logical negation ofpredicate
.
-
isIncluded
Whether to consider aConstructor
. We generally exclude synthetic constructors for non-Kotlin classes.- Parameters:
candidate
-- Returns:
-
isExcluded
Whether to not consider aConstructor
. We generally exclude synthetic constructors for non-Kotlin classes.- Parameters:
candidate
-- Returns:
-