All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface COM.objectspace.jgl.Container

public interface Container
extends Cloneable, Serializable
Container is the interface that is implemented by all of the Generic Container Library containers.

See Also:
Array, Deque, DList, HashMap, HashSet, OrderedMap, OrderedSet, PriorityQueue, Queue, SList, Stack

Variable Index

 o serialVersionUID

Method Index

 o add(Object)
Add an object to myself.
 o clear()
Remove all of my objects.
 o clone()
Return a shallow copy of myself.
 o elements()
Return an Enumeration of the components in this container
 o equals(Object)
Return true if I'm equal to a specified object.
 o finish()
Return an iterator positioned immediately after my last item.
 o isEmpty()
Return true if I contain no objects.
 o maxSize()
Return the maximum number of objects that I can contain.
 o remove(Enumeration)
Remove the element at a particular position.
 o remove(Enumeration, Enumeration)
Remove the elements in the specified range.
 o size()
Return the number of objects that I contain.
 o start()
Return an iterator positioned at my first item.
 o toString()
Return a string that describes me.

Variables

 o serialVersionUID
 public static final long serialVersionUID

Methods

 o clone
 public abstract Object clone()
Return a shallow copy of myself.

Overrides:
clone in class Object
 o toString
 public abstract String toString()
Return a string that describes me.

Overrides:
toString in class Object
 o equals
 public abstract boolean equals(Object object)
Return true if I'm equal to a specified object.

Parameters:
object - The object to compare myself against.
Returns:
true if I'm equal to the specified object.
Overrides:
equals in class Object
 o size
 public abstract int size()
Return the number of objects that I contain.

 o maxSize
 public abstract int maxSize()
Return the maximum number of objects that I can contain.

 o isEmpty
 public abstract boolean isEmpty()
Return true if I contain no objects.

 o clear
 public abstract void clear()
Remove all of my objects.

 o elements
 public abstract Enumeration elements()
Return an Enumeration of the components in this container

 o start
 public abstract ForwardIterator start()
Return an iterator positioned at my first item.

 o finish
 public abstract ForwardIterator finish()
Return an iterator positioned immediately after my last item.

 o add
 public abstract Object add(Object object)
Add an object to myself. If appropriate, return the object that displaced it, otherwise return null.

 o remove
 public abstract Object remove(Enumeration pos)
Remove the element at a particular position.

 o remove
 public abstract int remove(Enumeration first,
                            Enumeration last)
Remove the elements in the specified range.


All Packages  Class Hierarchy  This Package  Previous  Next  Index