Interface PersistenceEvents.Updated

All Superinterfaces:
Consumer<Map<Entity,Entity>>, Observer<Map<Entity,Entity>>, Sensor
Enclosing interface:
PersistenceEvents

public static interface PersistenceEvents.Updated extends Observer<Map<Entity,Entity>>, Consumer<Map<Entity,Entity>>
Notified on update.
  • Method Details

    • accept

      void accept(Map<Entity,Entity> updated)
      Notifies that the given entities have been updated.
      Specified by:
      accept in interface Consumer<Map<Entity,Entity>>
      Parameters:
      updated - the entities as submitted for update, their original values the ones before it, mapped to their updated state
      Throws:
      IllegalArgumentException - in case any of the entities is of the incorrect type