public static class DiffableUtils.PrototypeReader<T extends Diffable<T>> extends Object implements DiffableUtils.KeyedReader<T>
| Constructor and Description |
|---|
DiffableUtils.PrototypeReader(T proto) |
| Modifier and Type | Method and Description |
|---|---|
Diff<T> |
readDiffFrom(StreamInput in,
String key)
reads an object that respresents differences between two objects with the type T from the stream input
|
T |
readFrom(StreamInput in,
String key)
reads an object of the type T from the stream input
|
public DiffableUtils.PrototypeReader(T proto)
public T readFrom(StreamInput in, String key) throws IOException
DiffableUtils.KeyedReaderreadFrom in interface DiffableUtils.KeyedReader<T extends Diffable<T>>IOExceptionpublic Diff<T> readDiffFrom(StreamInput in, String key) throws IOException
DiffableUtils.KeyedReaderreadDiffFrom in interface DiffableUtils.KeyedReader<T extends Diffable<T>>IOExceptionCopyright © 2009–2017. All rights reserved.