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 ClassesModifier and TypeInterfaceDescriptionstatic enum
The kind of a change model. -
Method Summary
-
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
ChangeModel.ChangeKind 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
-