Interface FileToObjectFromClass


public interface FileToObjectFromClass
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
    <T> T
    toObject(File file, Class<T> clazz)
    Transforms the given json File object to an object of the given class type
  • Method Details

    • toObject

      <T> T toObject(File file, Class<T> clazz)
      Transforms the given json File object to an object of the given class type
      Type Parameters:
      T - the generic type of the argument object class type
      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