Interface Demapifier<T>

  • Type Parameters:
    T - the type of the object to be created
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Demapifier<T>
    A Demapifier is responsible to create a new object of the given Class from the date contained in the Map.
    See Also:
    EventMaid Documentation
    • Method Detail

      • map

        T map​(Class<T> targetType,
              Object map)
        Creates a new object of the given type using the data from the Map.
        Parameters:
        targetType - the type to be created
        map - a map containing necessary data
        Returns:
        the newly created object