public abstract class BeanPredicates extends Object
BeanPropertyPredicate instances| Type | Property and Description |
|---|---|
static BeanPropertyPredicate |
any
Return a
BeanPropertyPredicate which always returns true |
| Constructor and Description |
|---|
BeanPredicates() |
| Modifier and Type | Method and Description |
|---|---|
static BeanPropertyPredicate |
anyProperty()
Return a
BeanPropertyPredicate which always returns true |
static BeanPropertyPredicate |
hasPropertyValue(String name,
Object value)
Return a
BeanPropertyPredicate which returns true if the property has the supplied name and value |
static BeanPropertyPredicate |
hasValue(Object value)
Return a
BeanPropertyPredicate which returns true if the property has the supplied value |
static BeanPropertyPredicate |
matchesAll(BeanPropertyPredicate... predicates)
Return a
BeanPredicates which returns true when all of the supplied predicates match |
static BeanPropertyPredicate |
matchesOneOf(BeanPropertyPredicate... predicates)
Return a
BeanPredicates which returns true when any of the supplied predicates match |
static BeanPropertyPredicate |
matchesPattern(String name,
String pattern)
Return a
BeanPropertyPredicate which returns true if the property has the supplied name and matches the supplied regular expression |
static BeanPropertyPredicate |
named(String name)
Return a
BeanPropertyPredicate which returns true if the property has the supplied name |
static BeanPropertyPredicate |
named(String propertyName,
Class<?>... types)
Return a
BeanPropertyPredicate for a property named with the supplied name and is of one of the supplied types |
static BeanPropertyPredicate |
ofDeclaringType(Class<?>... types)
Return a
BeanPropertyPredicate which returns true if the property has any of the types as it's declaring type |
static BeanPropertyPredicate |
ofType(Class<?>... types)
Return a
BeanPropertyPredicate which returns true if the property has any of the supplied types |
public static BeanPropertyPredicate anyProperty
BeanPropertyPredicate which always returns truepublic static BeanPropertyPredicate matchesAll(BeanPropertyPredicate... predicates)
BeanPredicates which returns true when all of the supplied predicates matchpublic static BeanPropertyPredicate matchesOneOf(BeanPropertyPredicate... predicates)
BeanPredicates which returns true when any of the supplied predicates matchpublic static BeanPropertyPredicate anyProperty()
BeanPropertyPredicate which always returns truepublic static BeanPropertyPredicate named(String name)
BeanPropertyPredicate which returns true if the property has the supplied namepublic static BeanPropertyPredicate hasValue(Object value)
BeanPropertyPredicate which returns true if the property has the supplied valuepublic static BeanPropertyPredicate hasPropertyValue(String name, Object value)
BeanPropertyPredicate which returns true if the property has the supplied name and valuepublic static BeanPropertyPredicate ofType(Class<?>... types)
BeanPropertyPredicate which returns true if the property has any of the supplied typespublic static BeanPropertyPredicate matchesPattern(String name, String pattern)
BeanPropertyPredicate which returns true if the property has the supplied name and matches the supplied regular expressionpublic static BeanPropertyPredicate ofDeclaringType(Class<?>... types)
BeanPropertyPredicate which returns true if the property has any of the types as it's declaring typepublic static BeanPropertyPredicate named(String propertyName, Class<?>... types)
BeanPropertyPredicate for a property named with the supplied name and is of one of the supplied typesCopyright © 2015. All rights reserved.