jds
Interface Collection

All Known Subinterfaces:
Bag, Deque, FindMin, Indexed, Map, Queue, Set, Sorted, Stack

public abstract interface Collection
extends java.io.Serializable

Base class for jds Container hierarcy; for use with book Classic Data Structures in Java by Timothy A Budd, published by Addison-Wesley, 2001.

See Also:
Enumeration, Serializable

Fields inherited from class java.io.Serializable
serialVersionUID
 
Method Summary
 java.util.Enumeration elements()
          Yields enumerator for collection
 boolean isEmpty()
          Determines whether the collection is empty
 int size()
          Determines number of elements in collection
 

Method Detail

isEmpty

public boolean isEmpty()
Determines whether the collection is empty
Returns:
true if the collection is empty

size

public int size()
Determines number of elements in collection
Returns:
number of elements in collection as integer

elements

public java.util.Enumeration elements()
Yields enumerator for collection
Returns:
an Enumeration that will yield the elements of the collection
See Also:
Enumeration