org.eclipse.viatra.query.runtime.base.api

## Interface IQueryResultUpdateListener<KeyType,ValueType>

- Type Parameters:
    `KeyType` -
    `ValueType` -

      public interface IQueryResultUpdateListener<KeyType,ValueType>

  Listener interface for receiving notification from `QueryResultMultimap`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `notifyPut(KeyType key, ValueType value)` This method is called by the query result multimap when a new key-value pair is put into the multimap
    `void` | `notifyRemove(KeyType key, ValueType value)` This method is called by the query result multimap when key-value pair is removed from the multimap

- - ### Method Detail

    - #### notifyPut

          void notifyPut(KeyType key,
                         ValueType value)

      This method is called by the query result multimap when a new key-value pair is put into the multimap

      Only invoked if the contents of the multimap changed!

      Parameters:
        `key` - the key of the newly inserted pair
        `value` - the value of the newly inserted pair

    - #### notifyRemove

          void notifyRemove(KeyType key,
                            ValueType value)

      This method is called by the query result multimap when key-value pair is removed from the multimap

      Only invoked if the contents of the multimap changed!

      Parameters:
        `key` - the key of the removed pair
        `value` - the value of the removed pair