Interface ObjectableFromClass<T,P>

Type Parameters:
T - the generic type of the return type
P - the generic type of the input parameter aka the transformable object
All Known Subinterfaces:
FileToObjectFromClass<T>
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 ObjectableFromClass<T,P>
The interface ObjectableFromClass provides a single method for transform a given transformable object to a java object with giving explicitly the class type of the return type
  • Method Summary

    Modifier and Type
    Method
    Description
    toObject(P transformable, Class<T> clazz)
    Transforms the given transformable object to a java object
  • Method Details

    • toObject

      T toObject(P transformable, Class<T> clazz)
      Transforms the given transformable object to a java object
      Parameters:
      transformable - the input that will be transformed to the generic java object
      clazz - the class from the class type of the object that will be returned
      Returns:
      the java object