Interface ChangeModel<E>

Type Parameters:
E - The element type represented by the change model
All Known Subinterfaces:
MapChangeModel<K,​V>, PluralChangeModel<C,​V>, SingularChangeModel<E>

public interface ChangeModel<E>
An interface for accessing the change model of an object.
Since:
1.2.0
Author:
Christian Beikov
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  ChangeModel.ChangeKind
    The kind of a change model.
  • Method Summary

    Modifier and Type Method Description
    E getCurrentState()
    Returns the current state of the change model.
    E getInitialState()
    Returns the initial state of the change model.
    ChangeModel.ChangeKind getKind()
    Returns the kind of the change done to the attribute.
    boolean isDirty()
    Returns whether the object is dirty/was modified.
  • Method Details

    • getInitialState

      E getInitialState()
      Returns the initial state of the change model.
      Returns:
      The initial state
    • getCurrentState

      E getCurrentState()
      Returns the current state of the change model.
      Returns:
      The current state
    • getKind

      Returns the kind of the change done to the attribute.
      Returns:
      The change kind
    • isDirty

      boolean isDirty()
      Returns whether the object is dirty/was modified.
      Returns:
      True if dirty, false otherwise