- Type Parameters:
T
- type
of objects
being filtered.
- All Superinterfaces:
Predicate<T>
- All Known Implementing Classes:
MappingPdxSerializer.TypeFilters
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 1.0.0
- Author:
- John Blum
- See Also:
-
-
Method Summary
boolean
Evaluates the given
Object
and determines whether the
Object
is accepted
based on the filter criteria.
default boolean
Tests whether the given
Object
matches the criteria defined by this
Filter
.
-
Method Details
-
accept
Evaluates the given
Object
and determines whether the
Object
is accepted
based on the filter criteria.
- Parameters:
obj
- Object
to filter.
- Returns:
- a boolean value indicating whether this
Filter
accepts the given Object
based on the filter criteria.
-
test
default boolean test(T obj)
Tests whether the given
Object
matches the criteria defined by this
Filter
.
- Specified by:
test
in interface Predicate<T>
- Parameters:
obj
- Object
to test.
- Returns:
- a boolean value indicating whether the given
Object
matches the criteria
defined by this Filter
.
- See Also:
-