|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.diff.IntralineSequence
Represents a sequence of characters within a line.
| Constructor Summary | |
IntralineSequence(CharSequence chars)
Constructs an intraline sequence based on a sequence of characters from a single line of text. |
|
IntralineSequence(CharSequence chars,
boolean bCharacterBased)
Constructs an intraline sequence based on a sequence of characters from a single line of text. |
|
| Method Summary | |
boolean |
add(java.lang.Object o)
Adds the given element to the sequence. |
java.lang.Object |
get(int index)
Gets a given element of the sequence. |
static DiffCompare |
getDiffCompare()
Gets a DiffCompare interface appropriate for comparing members of an intraline sequence. |
int |
size()
Gets the number of elements in the sequence. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IntralineSequence(CharSequence chars)
chars - The underlying character sequence.
public IntralineSequence(CharSequence chars,
boolean bCharacterBased)
chars - The underlying character sequence.bCharacterBased - true to create a character-based
sequence (for deep comparison); false to create a word-based
sequence (for comparisons that are likely to appear more
natural to the user).| Method Detail |
public boolean add(java.lang.Object o)
add in interface Sequenceo - The element to be added.
public java.lang.Object get(int index)
get in interface Sequenceindex - The index of the desired element within the sequence.
public int size()
size in interface Sequencepublic static DiffCompare getDiffCompare()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||