Interface ContainerChange<C,​E>

    • Method Detail

      • getContainer

        C getContainer()
        Returns:
        the container that changed.
      • getType

        io.github.mmm.event.ChangeType getType()
        Returns:
        the ChangeType as one of ChangeType.ADD, ChangeType.UPDATE, or ChangeType.REMOVE.
      • getElement

        E getElement​(int index)
        Parameters:
        index - the index of the changed element in the range from 0 to count - 1.
        Returns:
        the element at the given index. In case of ChangeType.REMOVE the removed element, in case of ChangeType.ADD the inserted element, and in case of ChangeType.UPDATE the updated element.
      • getCount

        int getCount()
        Returns:
        the number of elements that have changed.