Package com.java.pojo.api
Class FieldPredicate
java.lang.Object
com.java.pojo.api.FieldPredicate
This class is used to create field predicates. It has methods that allow to create common predicates e.g. accept all
fields.
- Since:
- 0.1.0
- Author:
- Piotr JoĊski
-
Method Summary
Modifier and TypeMethodDescriptionCreatesPredicate
that rejects given fields.CreatesPredicate
that rejects given fields.CreatesPredicate
that accepts given fields.CreatesPredicate
that accepts given fields.includeAllFields
(Class<?> clazz) CreatesPredicate
that accepts all fields of specified class.
-
Method Details
-
includeAllFields
CreatesPredicate
that accepts all fields of specified class.- Parameters:
clazz
- class, which fields will be accepted- Returns:
Predicate
that accepts all fields of given class- See Also:
-
include
CreatesPredicate
that accepts given fields.- Parameters:
includedFields
- fields, that will be included into predicate- Returns:
Predicate
that accepts given fields- See Also:
-
include
CreatesPredicate
that accepts given fields.- Parameters:
includedFields
- fields, that will be included into predicate- Returns:
Predicate
that accepts given fields- See Also:
-
exclude
CreatesPredicate
that rejects given fields.- Parameters:
excludedFields
- fields, that will be excluded from predicate- Returns:
Predicate
that rejects given fields- See Also:
-
exclude
CreatesPredicate
that rejects given fields.- Parameters:
excludedFields
- fields, that will be excluded from predicate- Returns:
Predicate
that rejects given fields- See Also:
-