Module transform.api.main
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.
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
-
Method Details
-
toObject
Transforms the given jsonFile
object to an object of the given class type- Specified by:
toObject
in interfaceObjectableFromClass<T,
File> - Parameters:
file
- the file that contains the objectclazz
- the class from the class type of the object that will be returned- Returns:
- the java object
-