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
FieldsModifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Static MethodsModifier and TypeMethodDescriptiondeclaringClass
(Predicate<Class<?>> predicate) APredicate
that introspects the declaring class of the member.static 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
Deprecated, for removal: This API element is subject to removal in a future version. -
IS_OBJECT_MEMBER
-
IS_JAVA
-
IS_NATIVE
-
IS_PRIVATE
-
IS_PROTECTED
-
IS_PUBLIC
-
IS_SYNTHETIC
-
IS_KOTLIN
-
IS_STATIC
-
IS_BRIDGE_METHOD
-
-
Method Details
-
declaringClass
APredicate
that introspects the declaring class of the member.- Returns:
- a
Predicate
that introspects the declaring class of the member. - Since:
- 4.0
-
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:
-