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.
-
InsertIterator(Container)
- Construct myself so that current( object ) inserts the object into a container
using add().
-
InsertIterator(InsertIterator)
- Construct myself to be a copy of the specified iterator.
-
advance()
- Advance by one.
-
advance(int)
- Advance by a specified amount.
-
clone()
- Return a clone of myself.
-
put(Object)
- Insert the object to my associated container using add().
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.
InsertIterator
public InsertIterator(InsertIterator iterator)
- Construct myself to be a copy of the specified iterator.
- Parameters:
- iterator - The iterator to copy.
put
public void put(Object object)
- Insert the object to my associated container using add().
- Parameters:
- object - The object to be added.
advance
public void advance()
- Advance by one. This has no effect for an InsertIterator.
advance
public void advance(int n)
- Advance by a specified amount. This has no effect for an InsertIterator.
- Parameters:
- n - The amount to advance.
clone
public Object clone()
- Return a clone of myself.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index