| JGL - The Generic Collection Library for Java |
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
-
serialVersionUID
-
-
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.
-
remove(Enumeration)
- Remove the element at a particular position.
-
remove(Enumeration, Enumeration)
- Remove the elements in the specified range.
-
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.
serialVersionUID
public static final long serialVersionUID
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
displaced it, otherwise return null.
remove
public abstract Object remove(Enumeration pos)
- Remove the element at a particular position.
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