|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.suigeneris.jrcs.util.ToString
org.suigeneris.jrcs.diff.DiffHelper
public class DiffHelper
Provides methods useful for setting up differencing scenarios.
Constructor Summary | |
---|---|
DiffHelper()
|
Method Summary | |
---|---|
static java.lang.Object[] |
editAll(java.lang.Object[] text)
Edits all of the items in the input sequence. |
static java.lang.Object[] |
randomEdit(java.lang.Object[] text)
Performs random edits on the input sequence. |
static java.lang.Object[] |
randomEdit(java.lang.Object[] text,
long seed)
Performs random edits on the input sequence. |
static java.lang.Object[] |
randomSequence(int size)
Generate a random sequence of the given size. |
static java.lang.Object[] |
randomSequence(int size,
long seed)
Generate a random sequence of the given size. |
static java.lang.Object[] |
shuffle(java.lang.Object[] text)
Shuffles around the items in the input sequence. |
static java.lang.Object[] |
shuffle(java.lang.Object[] text,
long seed)
Shuffles around the items in the input sequence. |
Methods inherited from class org.suigeneris.jrcs.util.ToString |
---|
arrayToString, arrayToString, stringToArray, stringToArray, toString, toString, toStringOfChars |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DiffHelper()
Method Detail |
---|
public static java.lang.Object[] editAll(java.lang.Object[] text)
text
- The input sequence.
public static java.lang.Object[] randomEdit(java.lang.Object[] text)
text
- The input sequence.
public static java.lang.Object[] randomEdit(java.lang.Object[] text, long seed)
text
- The input sequence.seed
- A seed value for the randomizer.
public static java.lang.Object[] shuffle(java.lang.Object[] text)
text
- The input sequence.
public static java.lang.Object[] shuffle(java.lang.Object[] text, long seed)
text
- The input sequence.seed
- A seed value for randomizing the suffle.
public static java.lang.Object[] randomSequence(int size)
The
- size of the sequence to generate.
public static java.lang.Object[] randomSequence(int size, long seed)
The
- size of the sequence to generate.seed
- A seed value for randomizing the generation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |