Package de.espirit.common.util
Interface Filter.TypedFilter<T>
- All Superinterfaces:
Filter<T>
,Serializable
- All Known Implementing Classes:
StoreElementFilter
,TypedFilter
Extension to a filter definition that provides the element in question as type safe object, if the filter accepted it.
- Since:
- 5.0.20
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.common.util.Filter
Filter.AndFilter<T>, Filter.CombinedFilter<T>, Filter.EqualFilter<T>, Filter.ImpliesFilter<T>, Filter.NotFilter<T>, Filter.OrFilter<T>, Filter.TypedFilter<T>, Filter.Util
-
Method Summary
Modifier and TypeMethodDescriptionFilter the given element and return either an object of this classes type T or null, if the element does not match the filter as defined byFilter.accept(Object)
.getType()
Get the element type of this instance, all filtered instances are of this type.
-
Method Details
-
getType
Get the element type of this instance, all filtered instances are of this type.- Returns:
- The element type.
- Since:
- 4.0.17
-
filter
Filter the given element and return either an object of this classes type T or null, if the element does not match the filter as defined byFilter.accept(Object)
.- Parameters:
element
- The element to be filtered.- Returns:
- The correctly typed element or null.
- Since:
- 4.0.17
-