Package cn.sliew.milky.common.diff
Class AbstractDiffable<T extends Diffable<T>>
- java.lang.Object
-
- cn.sliew.milky.common.diff.AbstractDiffable<T>
-
- All Implemented Interfaces:
Diffable<T>,Serializable
public abstract class AbstractDiffable<T extends Diffable<T>> extends Object implements Diffable<T>
Abstract diffable object with simple diffs implementation that sends the entire object if object has changed or nothing if object remained the same.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractDiffable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Diff<T>diff(T previousState)Returns serializable object representing differences between this and previousState
-