public interface Binary extends Bytes
Values are effectively immutable. Instances can be backed by
user-supplied byte arrays
. Once a Binary has been constructed around an
array, care must be taken not to modify the data in the array because doing
so would violate immutability.
BinaryDataType
Modifier and Type | Method and Description |
---|---|
Binary |
apply(BinaryDelta delta)
Apply a binary delta to this value to create a new value.
|
BinaryDelta |
diff(Binary original)
Compare this value with an earlier version to calculate a binary delta.
|
asInputStream, copyTo, length, toByteArray
Binary apply(BinaryDelta delta) throws InvalidDataException
Convenient equivalent to
Diffusion.dataTypes().binary().binaryDeltaType().apply(this, delta)
.
InvalidDataException
- if the delta is invalidBinaryDelta diff(Binary original)
Convenient equivalent to
Diffusion.dataTypes().binary().binaryDeltaType().diff(original, this)
.
original
- the original Binary value to compare with this valueCopyright © 2022 Push Technology Ltd. All Rights Reserved.