All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdoOracle.ObjectList

java.lang.Object
   |
   +----sdoOracle.ObjectList

public class ObjectList
extends Object
Class ObjectList defines a generic list of objects.

See Also:
Node

Constructor Index

 o ObjectList()
Constructs an empty list of objects.

Method Index

 o add(Object)
Adds a new object to this list.
 o clear()
Clears the list content.
 o first()
Returns the first object.
 o getItem(int)
Returns the Object related with input index.
 o item()
Returns the current object.
 o next()
Returns the next object.
 o remove(Object)
Removes an existing object from this list.
 o size()
Returns the actual number of objects.
 o start()
Makes first object as the current item.

Constructors

 o ObjectList
 public ObjectList()
Constructs an empty list of objects.

Methods

 o add
 public void add(Object obj)
Adds a new object to this list.

Parameters:
obj - input Object to be added.
 o remove
 public void remove(Object obj)
Removes an existing object from this list.

Parameters:
obj - input Object to be removed.
 o start
 public void start()
Makes first object as the current item.

 o first
 public Object first()
Returns the first object.

Returns:
returns an Object or null.
 o next
 public Object next()
Returns the next object.

Returns:
returns an Object or null.
 o clear
 public void clear()
Clears the list content.

 o item
 public Object item()
Returns the current object.

Returns:
returns an Object or null.
 o getItem
 public Object getItem(int index)
Returns the Object related with input index.

Parameters:
index - position in the list (starts at 0).
Returns:
returns an Object or null.
 o size
 public int size()
Returns the actual number of objects.

Returns:
returns an integer value.

All Packages  Class Hierarchy  This Package  Previous  Next  Index