public class CreateObject extends KorypheFunction<Object,Object>
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.| Constructor and Description |
|---|
CreateObject() |
CreateObject(Class<?> objectClass) |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(Object value) |
boolean |
equals(Object o) |
Class<?> |
getObjectClass() |
int |
hashCode() |
void |
setObjectClass(Class<?> objectClass) |
public CreateObject()
public CreateObject(Class<?> objectClass)
public Class<?> getObjectClass()
public void setObjectClass(Class<?> objectClass)
public boolean equals(Object o)
equals in class KorypheFunction<Object,Object>public int hashCode()
hashCode in class KorypheFunction<Object,Object>Copyright © 2021. All rights reserved.