Class ArrayFactory

    • Method Detail

      • forType

        public static ArrayFactory forType​(TypeDescription.Generic componentType)
        Creates a new array factory for a given component type.
        Parameters:
        componentType - The component type of the array that is to be build.
        Returns:
        A new array factory for the given type.
      • withValues

        public StackManipulation withValues​(java.util.List<? extends StackManipulation> stackManipulations)
        Description copied from interface: CollectionFactory
        Applies this collection factory in order to build a new collection where each element is represented by the given stack manipulations.
        Specified by:
        withValues in interface CollectionFactory
        Parameters:
        stackManipulations - A list of stack manipulations loading the values to be stored in the collection that is created by this factory in their given order.
        Returns:
        A stack manipulation that creates the collection represented by this collection factory.