Class CreateObject

  • All Implemented Interfaces:
    Function<Object,​Object>

    public class CreateObject
    extends KorypheFunction<Object,​Object>
    A CreateObject is a Function that takes an optional Object and creates an new instance of a class. It uses reflection to instantiate an new object given a class name. If an object is provided and it isn't null then 'new TheProvidedClassName(object)' is called. Otherwise the no-arg constructor is used.