Module transform.api.main
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.
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
-
Method Details
-
toObject
Transforms the givenFile
object to an object of the return type- Specified by:
toObject
in interfaceObjectable<T,
File> - Parameters:
file
- the file that contains the transformable object- Returns:
- the java object
-