K
- type of map keysV
- type of map valuesDiffableUtils.ValueSerializer<K,V>
DiffableUtils.DiffableValueReader
, NamedDiffableValueSerializer
public abstract static class DiffableUtils.DiffableValueSerializer<K,V extends Diffable<V>> extends java.lang.Object implements DiffableUtils.ValueSerializer<K,V>
Constructor | Description |
---|---|
DiffableValueSerializer() |
Modifier and Type | Method | 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
|
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