Package adql.query
Class ADQLList.ADQLListIterator
- java.lang.Object
-
- adql.query.ADQLList.ADQLListIterator
-
- All Implemented Interfaces:
ADQLIterator
,java.util.Iterator<ADQLObject>
- Enclosing class:
- ADQLList<T extends ADQLObject>
public static class ADQLList.ADQLListIterator extends java.lang.Object implements ADQLIterator
Lets iterating on all ADQL objects of the givenADQLList
.- Version:
- 06/2011
- Author:
- Grégory Mantelet (CDS)
-
-
Field Summary
Fields Modifier and Type Field Description protected int
index
protected ADQLList<ADQLObject>
list
protected boolean
removed
-
Constructor Summary
Constructors Constructor Description ADQLListIterator(ADQLList<? extends ADQLObject> lst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
ADQLObject
next()
void
remove()
void
replace(ADQLObject replacer)
Replaces the current ADQL object by the given ADQL object.
-
-
-
Field Detail
-
list
protected final ADQLList<ADQLObject> list
-
index
protected int index
-
removed
protected boolean removed
-
-
Constructor Detail
-
ADQLListIterator
public ADQLListIterator(ADQLList<? extends ADQLObject> lst)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<ADQLObject>
-
next
public ADQLObject next()
- Specified by:
next
in interfacejava.util.Iterator<ADQLObject>
-
replace
public void replace(ADQLObject replacer) throws java.lang.UnsupportedOperationException, java.lang.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:
java.lang.UnsupportedOperationException
- If the replace operation is not supported by this ADQLIterator.java.lang.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 interfacejava.util.Iterator<ADQLObject>
-
-