com.threerings.delta
Interface Deltable

All Known Implementing Classes:
Active, Actor, Agent, EntryState, Mobile, Pawn

public interface Deltable

Flags a class as being deltable, meaning that it supports the creation of delta objects that compactly represent a set of changes that may be applied to an original object in order to create an updated object. Deltable classes must have a no-argument constructor.

All non-transient fields will be automatically included in the delta generation process for a Deltable instance. Classes that wish to customize the delta process should implement a method with the following signature:

public Delta createDelta (Object revised);

This method should return a Delta instance that, when applied to an object identical to the object whose createDelta method was called, will return an object identical to revised.




Copyright © 2011. All Rights Reserved.