All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.util.InsertIterator

java.lang.Object
   |
   +----COM.objectspace.jgl.util.InsertIterator

public class InsertIterator
extends Object
implements OutputIterator, Serializable
An InsertIterator is an output iterator that adds any object that is written to it into a specified Container.


Constructor Index

 o InsertIterator(Container)
Construct myself so that current( object ) inserts the object into a container using add().
 o InsertIterator(InsertIterator)
Construct myself to be a copy of the specified iterator.

Method Index

 o advance()
Advance by one.
 o advance(int)
Advance by a specified amount.
 o clone()
Return a clone of myself.
 o put(Object)
Insert the object to my associated container using add().

Constructors

 o InsertIterator
 public InsertIterator(Container container)
Construct myself so that current( object ) inserts the object into a container using add().

Parameters:
container - The container to add to.
 o InsertIterator
 public InsertIterator(InsertIterator iterator)
Construct myself to be a copy of the specified iterator.

Parameters:
iterator - The iterator to copy.

Methods

 o put
 public void put(Object object)
Insert the object to my associated container using add().

Parameters:
object - The object to be added.
 o advance
 public void advance()
Advance by one. This has no effect for an InsertIterator.

 o advance
 public void advance(int n)
Advance by a specified amount. This has no effect for an InsertIterator.

Parameters:
n - The amount to advance.
 o clone
 public Object clone()
Return a clone of myself.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index