Package org.instancio.internal.spi
Interface InternalContainerFactoryProvider
Internal SPI that allows integrating 3rd party collections,
such as Guava, with internal collection generators.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription<S,
T> Function<S, T> createFromOtherFunction
(Class<T> targetType, List<Class<?>> typeArguments) Returns a function that converts a source object of typeS
to the target typeT
.boolean
isContainerClass
(Class<?> type)
-
Method Details
-
createFromOtherFunction
Returns a function that converts a source object of typeS
to the target typeT
.- Type Parameters:
S
- source typeT
- target type- Parameters:
targetType
- the type to be createdtypeArguments
- type arguments of the source object, or an empty list if the source object is not generic- Returns:
- conversion function
-
isContainerClass
-