Interface FileToGenericObject


public interface FileToGenericObject
The interface FileToGenericObject provides a single method for transform a given file to a java object without giving explicitly the class type of the return type
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    toObject(File file)
    Transforms the given File object to an object of the return type
  • Method Details

    • toObject

      <T> T toObject(File file)
      Transforms the given File object to an object of the return type
      Type Parameters:
      T - the generic type of the return type
      Parameters:
      file - the file that contains the transformable object
      Returns:
      the java object