|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.delta.Delta
public abstract class Delta
Represents a set of changes that may be applied to an existing object to create a new object (with a streamed form that is more compact than that which would be required for streaming the entire new object).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Constructor Summary | |
|---|---|
Delta()
|
|
| Method Summary | |
|---|---|
abstract Object |
apply(Object original)
Applies this delta to the specified object. |
static boolean |
checkDeltable(Object original,
Object revised)
Determines whether it is possible to create a Delta converting the original
object to the revised object. |
static Delta |
createDelta(Object original,
Object revised)
Creates and returns a new Delta that will convert the original object to the
revised object. |
abstract Delta |
merge(Delta other)
Merges this delta with another. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Delta()
| Method Detail |
|---|
public static boolean checkDeltable(Object original,
Object revised)
Delta converting the original
object to the revised object.
public static Delta createDelta(Object original,
Object revised)
Delta that will convert the original object to the
revised object.
public abstract Object apply(Object original)
public abstract Delta merge(Delta other)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||