Diffable<T>
, NamedWriteable
, Writeable
PersistentTasksCustomMetaData
, RepositoriesMetaData
, RestoreInProgress
, SnapshotDeletionsInProgress
, SnapshotsInProgress
public abstract class AbstractNamedDiffable<T extends NamedDiffable<T>> extends java.lang.Object implements Diffable<T>, NamedWriteable
Writeable.Reader<V>, Writeable.Writer<V>
Constructor | Description |
---|---|
AbstractNamedDiffable() |
Modifier and Type | Method | Description |
---|---|---|
Diff<T> |
diff(T previousState) |
Returns serializable object representing differences between this and previousState
|
T |
get() |
|
static <T extends NamedDiffable<T>> |
readDiffFrom(java.lang.Class<? extends T> tClass,
java.lang.String name,
StreamInput in) |
getWriteableName
public Diff<T> diff(T previousState)
Diffable
diff
in interface Diffable<T extends NamedDiffable<T>>
public static <T extends NamedDiffable<T>> NamedDiff<T> readDiffFrom(java.lang.Class<? extends T> tClass, java.lang.String name, StreamInput in) throws java.io.IOException
java.io.IOException
public T get()