public abstract class PairParameter<K,V> extends Object implements JIPipeValidatable, Map.Entry<K,V>
Map.Entry
.
We suggest to use 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 |
---|---|
K |
getKey() |
Class<K> |
getKeyClass() |
V |
getValue() |
Class<V> |
getValueClass() |
void |
reportValidity(JIPipeIssueReport report)
Generates a validity report
|
void |
setKey(K key) |
V |
setValue(V value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generateValidityReport
comparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode
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(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
report
- the report to be added topublic void setKey(K key)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.