public class ContainerIterator extends API implements java.util.Iterator<Container>
This is the ContainerIterator which allows CICS Java programs to browse all Containers in a Channel.
com.ibm.cics.server.API
for general restrictions on using the JCICS API.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getOwner()
Get the owner of this iterator.
|
boolean |
hasNext()
Determine if there is another Container in the Channel.
|
Container |
next()
Get the next Container from the Channel.
|
void |
remove()
Remove an element from the Channel.
|
public java.lang.Object getOwner()
public boolean hasNext()
hasNext
in interface java.util.Iterator<Container>
public Container next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator<Container>
java.util.NoSuchElementException
- there are no more containers leftpublic void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<Container>
java.lang.UnsupportedOperationException
- if the method is called