Class CollectionCreator

java.lang.Object
io.smallrye.graphql.execution.datafetcher.CollectionCreator

public class CollectionCreator extends Object
Helping with creating collection instances This gets the new collection when creating arguments to call the method. We get a Collection from graph-ql java, and we go through all elements, potentially transforming them, and then we need to create a new collection of the correct type to call the method via reflection.
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Details

    • CollectionCreator

      public CollectionCreator()
  • Method Details

    • newCollection

      public static Collection<?> newCollection(String className, int initialSize)