Interface FileToGenericObject<T>

Type Parameters:
T - the generic type of the return type
All Superinterfaces:
Objectable<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 FileToGenericObject<T> extends Objectable<T,File>
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
    toObject(File file)
    Transforms the given File object to an object of the return type
  • Method Details

    • toObject

      T toObject(File file)
      Transforms the given File object to an object of the return type
      Specified by:
      toObject in interface Objectable<T,File>
      Parameters:
      file - the file that contains the transformable object
      Returns:
      the java object