Interface FileToObjectFromClass<T>

Type Parameters:
T - the generic type of the argument object class type
All Superinterfaces:
ObjectableFromClass<T,File>
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 FileToObjectFromClass<T> extends ObjectableFromClass<T,File>
The interface FileToObjectFromClass provides a single method for transform a given file to a java object with giving explicitly the class type of the return type
  • Method Summary

    Modifier and Type
    Method
    Description
    toObject(File file, Class<T> clazz)
    Transforms the given json File object to an object of the given class type
  • Method Details

    • toObject

      T toObject(File file, Class<T> clazz)
      Transforms the given json File object to an object of the given class type
      Specified by:
      toObject in interface ObjectableFromClass<T,File>
      Parameters:
      file - the file that contains the object
      clazz - the class from the class type of the object that will be returned
      Returns:
      the java object