|
ABL4J (Alignment Based Learning for Java) - 0.9.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.schwiebert.abl4j.data.FindIterator<T>
T - public class FindIterator<T>
An Iterator that does not check ConcurrentModificationException.
| Field Summary | |
|---|---|
(package private) int |
cursor
Index of element to be returned by subsequent call to next. |
(package private) int |
lastRet
Index of element returned by most recent call to next or previous. |
private List |
list
|
private IConstituent<T> |
searched
|
| Constructor Summary | |
|---|---|
FindIterator(IConstituent<T> searched,
List list)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
private int |
indexOf(Object elem,
int index)
Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using
the equals method. |
IConstituent<T> |
next()
|
void |
remove()
Not supported - Will throw an UnsupportedOperationException if called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private List list
private IConstituent<T> searched
int cursor
int lastRet
| Constructor Detail |
|---|
public FindIterator(IConstituent<T> searched,
List list)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<IConstituent<T>>public IConstituent<T> next()
next in interface Iterator<IConstituent<T>>public void remove()
UnsupportedOperationException if called.
remove in interface Iterator<IConstituent<T>>
private int indexOf(Object elem,
int index)
index, and testing for equality using
the equals method.
elem - an object.index - the non-negative index to start searching from.
index or later in the
vector, that is, the smallest value k such that
elem.equals(elementData[k]) && (k >= index) is
true; returns -1 if the object is not
found. (Returns -1 if index >= the
current size of this Vector.)
IndexOutOfBoundsException - if index is negative.Object.equals(Object)
|
ABL4J (Alignment Based Learning for Java) - 0.9.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||