K
- type of map keysV
- type of map valuespublic abstract static class DiffableUtils.DiffableValueSerializer<K,V extends Diffable<V>> extends java.lang.Object implements DiffableUtils.ValueSerializer<K,V>
Constructor and Description |
---|
DiffableValueSerializer() |
Modifier and Type | Method and Description |
---|---|
Diff<V> |
diff(V value,
V beforePart)
Computes diff if this serializer supports diffable values
|
boolean |
supportsDiffableValues()
Whether this serializer supports diffable values
|
void |
write(V value,
StreamOutput out)
Writes value to stream
|
void |
writeDiff(Diff<V> value,
StreamOutput out)
Writes value as diff to stream if this serializer supports diffable values
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, readDiff, supportsVersion, supportsVersion
public boolean supportsDiffableValues()
DiffableUtils.ValueSerializer
supportsDiffableValues
in interface DiffableUtils.ValueSerializer<K,V extends Diffable<V>>
public Diff<V> diff(V value, V beforePart)
DiffableUtils.ValueSerializer
public void write(V value, StreamOutput out) throws java.io.IOException
DiffableUtils.ValueSerializer
public void writeDiff(Diff<V> value, StreamOutput out) throws java.io.IOException
DiffableUtils.ValueSerializer