| Constructor and Description |
|---|
ArrayDiff(ArrayFunctions<A> functions,
byte[] data)
Constructs an array diff with the given binary data.
|
ArrayDiff(ArrayFunctions<A> functions,
DataInput input)
Deserializes an array diff.
|
| Modifier and Type | Method and Description |
|---|---|
int |
length() |
void |
serialize(DataOutput output)
Serializes the diff to the given output stream.
|
java.lang.String |
toString() |
A |
update(A original)
Updates the given value.
|
public ArrayDiff(ArrayFunctions<A> functions, byte[] data)
functions - array functions implementationdata - binary datapublic ArrayDiff(ArrayFunctions<A> functions, DataInput input) throws java.io.IOException
functions - array functions implementationinput - input streamjava.io.IOException - if the input stream could not be readpublic void serialize(DataOutput output) throws java.io.IOException
DataDiffpublic int length()
public A update(A original)
DataDiffpublic java.lang.String toString()
toString in class java.lang.Object