Class DeserializationFilters


  • public final class DeserializationFilters
    extends Object
    A class defining reusable filters for the deserialization of objects.
    See Also:
    EventMaid Documentation
    • Constructor Detail

      • DeserializationFilters

        public DeserializationFilters()
    • 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