Package adql.query
Class ADQLList.ADQLListIterator
java.lang.Object
adql.query.ADQLList.ADQLListIterator
- All Implemented Interfaces:
ADQLIterator
,Iterator<ADQLObject>
- Enclosing class:
ADQLList<T extends ADQLObject>
Lets iterating on all ADQL objects of the given
ADQLList
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected final ADQLList
<ADQLObject> protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
void
remove()
void
replace
(ADQLObject replacer) Replaces the current ADQL object by the given ADQL object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
list
-
index
protected int index -
removed
protected boolean removed
-
-
Constructor Details
-
ADQLListIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<ADQLObject>
-
next
- Specified by:
next
in interfaceIterator<ADQLObject>
-
replace
public void replace(ADQLObject replacer) throws UnsupportedOperationException, IllegalStateException Description copied from interface:ADQLIterator
Replaces the current ADQL object by the given ADQL object. This method can be called only one time per call to next.- Specified by:
replace
in interfaceADQLIterator
- Parameters:
replacer
- The ADQL object which has to replace the current object.- Throws:
UnsupportedOperationException
- If the replace operation is not supported by this ADQLIterator.IllegalStateException
- If the next method has not yet been called, or the replace method has already been called after the last call to the next method.
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<ADQLObject>
-