public abstract class ListParameter<T> extends ArrayList<T> implements JIPipeValidatable, JIPipeCustomTextDescriptionParameter
Modifier and Type | Class and Description |
---|---|
static class |
ListParameter.Deserializer<T>
Deserializes the parameter
|
static class |
ListParameter.Serializer
Serializes the parameter
|
modCount
Constructor and Description |
---|
ListParameter(Class<T> contentClass) |
Modifier and Type | Method and Description |
---|---|
T |
addNewInstance()
Adds a new instance of the content class
Override this method for types that cannot be default-constructed
|
Class<T> |
getContentClass() |
Supplier<T> |
getCustomInstanceGenerator() |
String |
getTextDescription()
Gets the parameter as custom text description
|
void |
reportValidity(JIPipeValidationReportContext reportContext,
JIPipeValidationReport report)
Generates a validity report
|
void |
setCustomInstanceGenerator(Supplier<T> customInstanceGenerator) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
generateValidityReport
getTextDescriptionOf
containsAll, equals, hashCode
parallelStream, stream
public T addNewInstance()
public void reportValidity(JIPipeValidationReportContext reportContext, JIPipeValidationReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportContext
- the report contextreport
- the report to be added topublic String getTextDescription()
JIPipeCustomTextDescriptionParameter
getTextDescription
in interface JIPipeCustomTextDescriptionParameter
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.