| Package | Description |
|---|---|
| org.exparity.beans | |
| org.exparity.beans.core | |
| org.exparity.beans.core.predicates | |
| org.exparity.beans.core.visitors |
| Modifier and Type | Method and Description |
|---|---|
static BeanPropertyPredicate |
BeanPredicates.anyProperty()
Return a
BeanPropertyPredicate which always returns true |
static BeanPropertyPredicate |
BeanPredicates.hasPropertyValue(String name,
Object value)
Return a
BeanPropertyPredicate which returns true if the property has the supplied name and value |
static BeanPropertyPredicate |
BeanPredicates.hasValue(Object value)
Return a
BeanPropertyPredicate which returns true if the property has the supplied value |
static BeanPropertyPredicate |
BeanPredicates.matchesAll(BeanPropertyPredicate... predicates)
Return a
BeanPredicates which returns true when all of the supplied predicates match |
static BeanPropertyPredicate |
BeanPredicates.matchesOneOf(BeanPropertyPredicate... predicates)
Return a
BeanPredicates which returns true when any of the supplied predicates match |
static BeanPropertyPredicate |
BeanPredicates.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 |
BeanPredicates.named(String name)
Return a
BeanPropertyPredicate which returns true if the property has the supplied name |
static BeanPropertyPredicate |
BeanPredicates.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 |
BeanPredicates.ofDeclaringType(Class<?>... types)
Return a
BeanPropertyPredicate which returns true if the property has any of the types as it's declaring type |
static BeanPropertyPredicate |
BeanPredicates.ofType(Class<?>... types)
Return a
BeanPropertyPredicate which returns true if the property has any of the supplied types |
| Modifier and Type | Method and Description |
|---|---|
static BeanPropertyPredicate |
BeanPredicates.matchesAll(BeanPropertyPredicate... predicates)
Return a
BeanPredicates which returns true when all of the supplied predicates match |
static BeanPropertyPredicate |
BeanPredicates.matchesOneOf(BeanPropertyPredicate... predicates)
Return a
BeanPredicates which returns true when any of the supplied predicates match |
| Modifier and Type | Method and Description |
|---|---|
void |
Instance.apply(BeanPropertyFunction function,
BeanPropertyPredicate predicate)
Apply the
BeanPropertyFunction to all properties which match the predicate in the supplied instances. |
List<BeanProperty> |
Instance.find(BeanPropertyPredicate predicate)
Find all property properties which match the predicate.
|
BeanProperty |
Instance.findAny(BeanPropertyPredicate predicate)
Find the first instance of the property which matches the given predicate in the instance.
|
BeanProperty |
Instance.get(BeanPropertyPredicate predicate)
Get the property which matches the predicate from the instance or return
null if not matching property is found. |
boolean |
Instance.hasProperty(BeanPropertyPredicate predicate)
Test if the supplied instance has a Bean property which matches the given predicate.
|
boolean |
Instance.isPropertyType(BeanPropertyPredicate predicate,
Class<?> type)
Test if the property which matches the predicate on the supplied instance is of the supplied type.
|
Class<?> |
Instance.propertyType(BeanPropertyPredicate predicate)
Return the property type on the instance for the first property which matches the supplied predicate or
null if no matching properties are found. |
Object |
Instance.propertyValue(BeanPropertyPredicate predicate)
Return the first property value on the instance which matches the predicate or return
null if the no matching properties are not present on the instance. |
<T> T |
Instance.propertyValue(BeanPropertyPredicate predicate,
Class<T> type)
Return the first property value on the instance which matches the predicate or return
null if the no matching properties are not present on the instance. |
void |
Instance.setProperty(BeanPropertyPredicate predicate,
Object value)
Set the property which matches the predicate on the given instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HasType |
class |
MatchersPattern |
class |
MatchesAll |
class |
MatchesAlways |
class |
MatchesOneOf |
class |
Named |
class |
OfDeclaringType |
class |
WithPropertyValue |
class |
WithValue |
| Constructor and Description |
|---|
MatchesAll(BeanPropertyPredicate[] predicates) |
MatchesOneOf(BeanPropertyPredicate[] predicates) |
| Constructor and Description |
|---|
ApplyFunctionIf(BeanPropertyFunction function,
BeanPropertyPredicate predicate) |
CapturePropertyIf(BeanPropertyPredicate predicate) |
CapturePropertyToListIf(BeanPropertyPredicate predicate,
List<BeanProperty> collection) |
Copyright © 2015. All rights reserved.