KeyType
- ValueType
- public interface IQueryResultSetter<KeyType,ValueType>
The model modifications should ensure that the multimap changes exactly as required (i.e. a put results in only one new key-value pair and remove results in only one removed pair).
The input parameters of both put and remove can be validated by implementing the validate(Object, Object)
method.
Modifier and Type | Method and Description |
---|---|
boolean |
put(KeyType key,
ValueType value)
Modify the underlying model of the query in order to have the given key-value pair as a new result of the query.
|
boolean |
remove(KeyType key,
ValueType value)
Modify the underlying model of the query in order to remove the given key-value pair from the results of the
query.
|
boolean |
validate(KeyType key,
ValueType value)
Validates a given key-value pair for the query result.
|
boolean put(KeyType key, ValueType value)
key
- the key for which a new value is added to the query resultsvalue
- the new value that should be added to the query results for the given keyboolean remove(KeyType key, ValueType value)
key
- the key for which the value is removed from the query resultsvalue
- the value that should be removed from the query results for the given keyboolean validate(KeyType key, ValueType value)
key
- the key of the pair that is validatedvalue
- the value of the pair that is validated