Interface InternalContainerFactoryProvider


@InternalApi public interface InternalContainerFactoryProvider
Internal SPI that allows integrating 3rd party collections, such as Guava, with internal collection generators.
Since:
2.0.0
  • Method Details

    • createFromOtherFunction

      <S, T> Function<S,T> createFromOtherFunction(Class<T> targetType, List<Class<?>> typeArguments)
      Returns a function that converts a source object of type S to the target type T.
      Type Parameters:
      S - source type
      T - target type
      Parameters:
      targetType - the type to be created
      typeArguments - type arguments of the source object, or an empty list if the source object is not generic
      Returns:
      conversion function
    • isContainerClass

      boolean isContainerClass(Class<?> type)