|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.tum.cs.commons.algo.Diff.Delta<T>
public static class Diff.Delta<T>
Objects of this class describe the additions and deletions used to transform between two words.
| Method Summary | |
|---|---|
List<T> |
backwardPatch(List<T> b)
Applies the backward patch, i.e. if the second string is inserted, then the first string is returned. |
List<T> |
forwardPatch(List<T> a)
Applies the forward patch, i.e. if the first string is inserted, then the second string is returned. |
int |
getM()
Returns the size of the second word the delta was created for. |
int |
getN()
Returns the size of the first word the delta was created for. |
int |
getPosition(int i)
Returns the i-th element of the change positions. |
int |
getSize()
Returns the size of the delta, i.e. the number of additions and deletions. |
T |
getT(int i)
Returns the i-th element stored as addition or deletion. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getSize()
public int getN()
public int getM()
public T getT(int i)
public int getPosition(int i)
public List<T> forwardPatch(List<T> a)
public List<T> backwardPatch(List<T> b)
public String toString()
toString in class Object
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||