Package org.springframework.data.util
Interface Predicates
public interface Predicates
Utility methods to work with 
Predicates.- Since:
- 2.7
- Author:
- Mark Paluch
- 
Field SummaryFieldsModifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryStatic MethodsModifier and TypeMethodDescriptiondeclaringClass(Predicate<Class<?>> predicate) APredicatethat introspects the declaring class of the member.static booleanisExcluded(Constructor<?> candidate) Whether to not consider aConstructor.static <T> Predicate<T>isFalse()APredicatethat yields alwaysfalse.static booleanisIncluded(Constructor<?> candidate) Whether to consider aConstructor.static <T> Predicate<T>isTrue()APredicatethat yields alwaystrue.static <T> Predicate<T>Returns aPredicatethat represents the logical negation ofpredicate.
- 
Field Details- 
IS_ENUM_MEMBER
- 
IS_HIBERNATE_MEMBERDeprecated, 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- 
declaringClassAPredicatethat introspects the declaring class of the member.- Returns:
- a Predicatethat introspects the declaring class of the member.
- Since:
- 4.0
 
- 
isTrueAPredicatethat yields alwaystrue.- Returns:
- a Predicatethat yields alwaystrue.
 
- 
isFalseAPredicatethat yields alwaysfalse.- Returns:
- a Predicatethat yields alwaysfalse.
 
- 
negateReturns aPredicatethat represents the logical negation ofpredicate.- Returns:
- a Predicatethat represents the logical negation ofpredicate.
 
- 
isIncludedWhether to consider aConstructor. We generally exclude synthetic constructors for non-Kotlin classes.- Parameters:
- candidate-
- Returns:
 
- 
isExcludedWhether to not consider aConstructor. We generally exclude synthetic constructors for non-Kotlin classes.- Parameters:
- candidate-
- Returns:
 
 
-