All Packages Class Hierarchy This Package Previous Next Index
Interface jgl.Container
- public interface Container
- extends Cloneable
Container is the interface that is implemented by all of the
Java Generic Library containers.
- Version:
- JOS-FileSystem 4 Preview (25-Mar-98)
- Author:
- ObjectSpace, Inc.
- See Also:
- jgl.Array, jgl.Deque, jgl.DList, jgl.HashMap, jgl.HashSet, jgl.OrderedMap, jgl.OrderedSet, jgl.PriorityQueue, jgl.Queue, jgl.SList, jgl.Stack
-
add(Object)
- Add an object to myself.
-
clear()
- Remove all of my objects.
-
clone()
- Return a shallow copy of myself.
-
elements()
- Return an Enumeration of the components in this container
-
equals(Object)
- Return true if I'm equal to a specified object.
-
finish()
- Return an iterator positioned immediately after my last item.
-
isEmpty()
- Return true if I contain no objects.
-
maxSize()
- Return the maximum number of objects that I can contain.
-
size()
- Return the number of objects that I contain.
-
start()
- Return an iterator positioned at my first item.
-
toString()
- Return a string that describes me.
clone
public abstract Object clone()
- Return a shallow copy of myself.
- Overrides:
- clone in class Object
toString
public abstract String toString()
- Return a string that describes me.
- Overrides:
- toString in class Object
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
size
public abstract int size()
- Return the number of objects that I contain.
maxSize
public abstract int maxSize()
- Return the maximum number of objects that I can contain.
isEmpty
public abstract boolean isEmpty()
- Return true if I contain no objects.
clear
public abstract void clear()
- Remove all of my objects.
elements
public abstract Enumeration elements()
- Return an Enumeration of the components in this container
start
public abstract ForwardIterator start()
- Return an iterator positioned at my first item.
finish
public abstract ForwardIterator finish()
- Return an iterator positioned immediately after my last item.
add
public abstract Object add(Object object)
- Add an object to myself. If appropriate, return the object that it replaced, otherwise
return null.
All Packages Class Hierarchy This Package Previous Next Index