Modifier | Constructor and Description |
---|---|
protected |
Equal(byte[] src,
int offset,
byte lengthSize)
Creates a new
Diff.Equal modification with the length encoded in the
specified bytes. |
protected |
Equal(int length)
Creates a new
Diff.Equal modification with the specified length. |
Modifier and Type | Method and Description |
---|---|
protected byte |
ordinal()
Returns the 2-bit ordinal identifier for this modification.
|
protected int |
patch(StringBuilder builder,
int position)
Patches the specified
StringBuilder at the specified position
with the modification represented by this instance, returning the change
in length due to the patch operation. |
String |
toString() |
protected Equal(int length)
Diff.Equal
modification with the specified length.length
- The length representing the equal modification.protected Equal(byte[] src, int offset, byte lengthSize)
Diff.Equal
modification with the length encoded in the
specified bytes.src
- The bytes from which to decode the length.offset
- The offset in bits specifying the start of the length bits.lengthSize
- The number of bits representing the length.protected byte ordinal()
Diff.Mod
protected int patch(StringBuilder builder, int position)
Diff.Mod
StringBuilder
at the specified position
with the modification represented by this instance, returning the change
in length due to the patch operation.patch
in class Diff.Mod
builder
- The StringBuilder
in which to perform the patch.position
- The position at which to perform the patch.Copyright © 2020 LibJ. All rights reserved.