|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.delta.Delta
com.threerings.delta.ReflectiveDelta
public class ReflectiveDelta
A delta object that uses reflection to compare and modify the objects' fields. Note that unchanged object fields will be preserved by reference.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Constructor Summary | |
|---|---|
ReflectiveDelta()
No-arg constructor for deserialization. |
|
ReflectiveDelta(Object original,
Object revised)
Creates a new reflective delta that transforms the original object into the revised object (both of which must be instances of the same class). |
|
| Method Summary | |
|---|---|
Object |
apply(Object original)
Applies this delta to the specified object. |
boolean |
isEmpty()
Checks whether the delta is empty. |
Delta |
merge(Delta other)
Merges this delta with another. |
void |
readObject(com.threerings.io.ObjectInputStream in)
Custom read method. |
String |
toString()
|
void |
writeObject(com.threerings.io.ObjectOutputStream out)
Custom write method. |
| Methods inherited from class com.threerings.delta.Delta |
|---|
checkDeltable, createDelta |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectiveDelta(Object original,
Object revised)
public ReflectiveDelta()
| Method Detail |
|---|
public boolean isEmpty()
public void writeObject(com.threerings.io.ObjectOutputStream out)
throws IOException
IOException
public void readObject(com.threerings.io.ObjectInputStream in)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionpublic Object apply(Object original)
Delta
apply in class Deltapublic Delta merge(Delta other)
Delta
merge in class Deltapublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||