Text is represented as Object[] because the diff engine is
capable of handling more than plain ascci. In fact, arrays or lists of any
type that implements hashCode() and
equals() correctly can be subject to
differencing using this library.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private List | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | Chunk(int
the start position position, T[] the affected lines lines)Creates a chunk and saves a copy of affected lines |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public List | |
| public List | |
| public int | |
| public int | |
| public int | |
| public void | |
| public int | |
| public String | |
| public VerifyChunk | verifyChunk(List<T>
the sequence to verify against. target)Verifies that this chunk's saved text matches the corresponding text in the given sequence. |
| public VerifyChunk | verifyChunk(List<T>
the sequence to verify against. target, int the count of ignored prefix/suffix fuzz, int the position of target position)Verifies that this chunk's saved text matches the corresponding text in the given sequence. |
| changePosition | back to summary |
|---|---|
| private final List<Integer> changePosition | |
| lines | back to summary |
|---|---|
| private List<T> lines | |
| position | back to summary |
|---|---|
| private final int position | |
| Chunk | back to summary |
|---|---|
| public Chunk(int position, List<T> lines, List<Integer> changePosition) Creates a chunk and saves a copy of affected lines | |
| Chunk | back to summary |
|---|---|
| public Chunk(int position, List<T> lines) Creates a chunk and saves a copy of affected lines
| |
| Chunk | back to summary |
|---|---|
| public Chunk(int position, T[] lines, List<Integer> changePosition) Creates a chunk and saves a copy of affected lines | |
| Chunk | back to summary |
|---|---|
| public Chunk(int position, T[] lines) Creates a chunk and saves a copy of affected lines
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getChangePosition | back to summary |
|---|---|
| public List | |
| getLines | back to summary |
|---|---|
public List
| |
| getPosition | back to summary |
|---|---|
public int getPosition()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| last | back to summary |
|---|---|
| public int last() Returns the index of the last line of the chunk. | |
| setLines | back to summary |
|---|---|
| public void setLines(List<T> lines) | |
| size | back to summary |
|---|---|
| public int size() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| verifyChunk | back to summary |
|---|---|
| public VerifyChunk verifyChunk(List<T> target) throws PatchFailedException Verifies that this chunk's saved text matches the corresponding text in the given sequence.
| |
| verifyChunk | back to summary |
|---|---|
| public VerifyChunk verifyChunk(List<T> target, int fuzz, int position) throws PatchFailedException Verifies that this chunk's saved text matches the corresponding text in the given sequence.
| |