|
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 | |
---|---|
java.util.List<T> |
backwardPatch(java.util.List<T> b)
Applies the backward patch, i.e. if the second string is inserted, then the first string is returned. |
java.util.List<T> |
forwardPatch(java.util.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. |
java.lang.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 java.util.List<T> forwardPatch(java.util.List<T> a)
public java.util.List<T> backwardPatch(java.util.List<T> b)
public java.lang.String toString()
toString
in class java.lang.Object
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |