Package de.quantummaid.eventmaid.mapping
Class DeserializationFilters
- java.lang.Object
-
- de.quantummaid.eventmaid.mapping.DeserializationFilters
-
public final class DeserializationFilters extends Object
A class defining reusable filters for the deserialization of objects.- See Also:
- EventMaid Documentation
-
-
Constructor Summary
Constructors Constructor Description DeserializationFilters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Class<?>>
BiPredicate<T,Object>areOfType(T type)Creates a deserialization filter, that checks, if the the object to deserialize is of a given type.
-
-
-
Method Detail
-
areOfType
public static <T extends Class<?>> BiPredicate<T,Object> areOfType(T type)
Creates a deserialization filter, that checks, if the the object to deserialize is of a given type.- Type Parameters:
T- the type, the to apply the deserialization on- Parameters:
type- the type, the to apply the deserialization on- Returns:
- a filter checking if the object of deserialize is of the given type
-
-