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 jsonFileobject to an object of the given class type- Specified by:
toObjectin 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
-