public abstract class AbstractDiffable<T extends Diffable<T>> extends Object implements Diffable<T>
Constructor and Description |
---|
AbstractDiffable() |
Modifier and Type | Method and Description |
---|---|
Diff<T> |
diff(T previousState)
Returns serializable object representing differences between this and previousState
|
T |
get() |
static <T extends Diffable<T>> |
readDiffFrom(StreamableReader<T> reader,
StreamInput in) |
Diff<T> |
readDiffFrom(StreamInput in)
Reads the
Diff from StreamInput |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readFrom
public Diff<T> diff(T previousState)
Diffable
public Diff<T> readDiffFrom(StreamInput in) throws IOException
Diffable
Diff
from StreamInputreadDiffFrom
in interface Diffable<T extends Diffable<T>>
IOException
public static <T extends Diffable<T>> Diff<T> readDiffFrom(StreamableReader<T> reader, StreamInput in) throws IOException
IOException
public T get()
Copyright © 2009–2016. All rights reserved.