Class SupplierQualifiedElementCreator<T>
java.lang.Object
de.iip_ecosphere.platform.transport.serialization.SupplierQualifiedElementCreator<T>
- Type Parameters:
T- the value type of the element
- All Implemented Interfaces:
QualifiedElementCreator<T>
public class SupplierQualifiedElementCreator<T>
extends Object
implements QualifiedElementCreator<T>
Default
QualifiedElementCreator implementation based on a supplier.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSupplierQualifiedElementCreator(Supplier<QualifiedElement<T>> supplier, Class<T> type) Creates a supplier-based element creator. -
Method Summary
-
Field Details
-
type
-
supplier
-
-
Constructor Details
-
SupplierQualifiedElementCreator
Creates a supplier-based element creator.- Parameters:
supplier- the suppliertype- the type
-
-
Method Details
-
createElement
Description copied from interface:QualifiedElementCreatorCreates an element.- Specified by:
createElementin interfaceQualifiedElementCreator<T>- Returns:
- the element
-
getType
Description copied from interface:QualifiedElementCreatorReturns the type.- Specified by:
getTypein interfaceQualifiedElementCreator<T>- Returns:
- the type
-