public class JIPipeDefaultParameterTypeInfo extends Object implements JIPipeParameterTypeInfo
JIPipeParameterTypeInfo
Constructor and Description |
---|
JIPipeDefaultParameterTypeInfo(String id,
Class<?> fieldClass,
Supplier<Object> newInstanceGenerator,
Function<Object,Object> duplicateFunction,
String name,
String description) |
Modifier and Type | Method and Description |
---|---|
Object |
duplicate(Object original)
Duplicates the parameter
|
String |
getDescription() |
Class<?> |
getFieldClass() |
String |
getId() |
String |
getName() |
Object |
newInstance()
Creates a new non-null instance of the parameter type
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo
public JIPipeDefaultParameterTypeInfo(String id, Class<?> fieldClass, Supplier<Object> newInstanceGenerator, Function<Object,Object> duplicateFunction, String name, String description)
id
- the unique IDfieldClass
- the parameter classnewInstanceGenerator
- a function that generates a new instanceduplicateFunction
- a function that creates a deep copyname
- the namedescription
- the descriptionpublic Object newInstance()
JIPipeParameterTypeInfo
newInstance
in interface JIPipeParameterTypeInfo
public Object duplicate(Object original)
JIPipeParameterTypeInfo
duplicate
in interface JIPipeParameterTypeInfo
original
- the originalpublic String getId()
getId
in interface JIPipeParameterTypeInfo
public Class<?> getFieldClass()
getFieldClass
in interface JIPipeParameterTypeInfo
public String getName()
getName
in interface JIPipeParameterTypeInfo
public String getDescription()
getDescription
in interface JIPipeParameterTypeInfo
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.