public class NamedDiffableValueSerializer<T extends NamedDiffable<T>> extends DiffableUtils.DiffableValueSerializer<java.lang.String,T>
| Constructor and Description |
|---|
NamedDiffableValueSerializer(java.lang.Class<T> tClass) |
| Modifier and Type | Method and Description |
|---|---|
T |
read(StreamInput in,
java.lang.String key)
Reads value from stream.
|
Diff<T> |
readDiff(StreamInput in,
java.lang.String key)
Reads value as diff from stream if this serializer supports diffable values.
|
boolean |
supportsVersion(Diff<T> value,
Version version)
Whether this serializer supports the version of the output stream
|
boolean |
supportsVersion(T value,
Version version)
Whether this serializer supports the version of the output stream
|
diff, supportsDiffableValues, write, writeDiffpublic NamedDiffableValueSerializer(java.lang.Class<T> tClass)
public T read(StreamInput in, java.lang.String key) throws java.io.IOException
DiffableUtils.ValueSerializerjava.io.IOExceptionpublic boolean supportsVersion(Diff<T> value, Version version)
DiffableUtils.ValueSerializerpublic boolean supportsVersion(T value, Version version)
DiffableUtils.ValueSerializerpublic Diff<T> readDiff(StreamInput in, java.lang.String key) throws java.io.IOException
DiffableUtils.ValueSerializerjava.io.IOException