|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsears.search.data.CharIndexIterator
public class CharIndexIterator
Data structure to manage result of a search.
CharIndexIterator performs a loop iteration
Constructor Summary | |
---|---|
CharIndexIterator(java.util.ArrayList<Subtitle> subtitleList,
java.lang.String str)
Constructs a new CharIndexIterator object |
Method Summary | |
---|---|
int[] |
getNextRowAndCharIndex()
Gets the next row and char index INCOHERENCE: row < 0 or row > last row... |
int[] |
getNextRowAndCharIndexBeginAtRow(int row)
Gets the row and first char index of the next occurrence after row |
int[] |
getPreviousRowAndCharIndex()
Gets the row and first char index of the previous occurrence |
int[] |
getPreviousRowAndCharIndexBeginAtRow(int row)
Gets the row and first char index of the previous occurrence after row |
void |
setANewSubtitleList(java.util.ArrayList<Subtitle> newSubtitleList)
Sets a new array of Subtitle object |
boolean |
setANewTextForTheSearch(java.lang.String str)
Set if needed a new text for the search |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CharIndexIterator(java.util.ArrayList<Subtitle> subtitleList, java.lang.String str)
subtitleList
- the subtitle liststr
- the searched string
java.lang.IllegalArgumentException
- if one of the arguments id nullMethod Detail |
---|
public void setANewSubtitleList(java.util.ArrayList<Subtitle> newSubtitleList)
newSubtitleList
- the new arraypublic boolean setANewTextForTheSearch(java.lang.String str)
str
- the new text
public int[] getNextRowAndCharIndex()
public int[] getPreviousRowAndCharIndex()
public int[] getNextRowAndCharIndexBeginAtRow(int row)
row
- the row
public int[] getPreviousRowAndCharIndexBeginAtRow(int row)
row
- the row
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |