public abstract class PairParameter<K,V> extends Object implements JIPipeValidatable, Map.Entry<K,V>, JIPipeCustomTextDescriptionParameter
ParameterCollectionList
if applicable, due to its greater flexibility.Modifier and Type | Class and Description |
---|---|
static class |
PairParameter.Deserializer<K,V>
Deserializes the parameter
|
static class |
PairParameter.Serializer
Serializes the parameter
|
Constructor and Description |
---|
PairParameter(Class<K> keyClass,
Class<V> valueClass) |
PairParameter(PairParameter<K,V> other)
Creates a copy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
K |
getKey() |
Class<K> |
getKeyClass() |
String |
getTextDescription()
Gets the parameter as custom text description
|
V |
getValue() |
Class<V> |
getValueClass() |
int |
hashCode() |
void |
reportValidity(JIPipeValidationReportContext reportContext,
JIPipeValidationReport report)
Generates a validity report
|
void |
setKey(K key) |
V |
setValue(V value) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
generateValidityReport
comparingByKey, comparingByKey, comparingByValue, comparingByValue
getTextDescriptionOf
public PairParameter(Class<K> keyClass, Class<V> valueClass)
keyClass
- the key classvalueClass
- the stored contentpublic PairParameter(PairParameter<K,V> other)
other
- the originalpublic void reportValidity(JIPipeValidationReportContext reportContext, JIPipeValidationReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
reportContext
- the report contextreport
- the report to be added topublic boolean equals(Object o)
public int hashCode()
public void setKey(K key)
public 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.