Describes the delta between original and revised texts.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Delta.
Specifies the type of the delta. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| private Chunk | original
The original chunk. |
| private Chunk | revised
The revised chunk. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public Chunk | |
| public Chunk | |
| public abstract Delta. | |
| public int | |
| public int | |
| public String | |
| public abstract void |
| DEFAULT_END | back to summary |
|---|---|
| public static final String DEFAULT_END | |
| DEFAULT_START | back to summary |
|---|---|
| public static final String DEFAULT_START | |
| original | back to summary |
|---|---|
| private Chunk<T> original The original chunk. | |
| revised | back to summary |
|---|---|
| private Chunk<T> revised The revised chunk. | |
| Delta | back to summary |
|---|---|
| public Delta(Chunk<T> original, Chunk<T> revised) Construct the delta for original and revised chunks | |
| applyTo | back to summary |
|---|---|
| public abstract void applyTo(List<T> target) throws IllegalStateException Applies this delta as the patch for a given target
| |
| 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. | |
| getOriginal | back to summary |
|---|---|
public Chunk
| |
| getRevised | back to summary |
|---|---|
public Chunk
| |
| getType | back to summary |
|---|---|
| public abstract Delta. Returns the type of delta | |
| 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
| |
| lineNumber | back to summary |
|---|---|
| public int lineNumber() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| verify | back to summary |
|---|---|
| public abstract void verify(List<T> target) throws IllegalStateException Verifies that this delta can be used to patch the given text.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Delta. | CHANGE
A change in the original. |
| public static final Delta. | DELETE
A delete from the original. |
| public static final Delta. | INSERT
An insert into the original. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Delta. | |
| public static Delta. |
| CHANGE | back to summary |
|---|---|
| public static final Delta. A change in the original. | |
| DELETE | back to summary |
|---|---|
| public static final Delta. A delete from the original. | |
| INSERT | back to summary |
|---|---|
| public static final Delta. An insert into the original. | |
| TYPE | back to summary |
|---|---|
| private TYPE() | |
| valueOf | back to summary |
|---|---|
| public static Delta. | |
| values | back to summary |
|---|---|
| public static Delta. | |