All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jdsl.simple.api.SimpleContainer

public interface SimpleContainer
Interface for a generic container.

A container is a collection of elements, each of which is a generic Object. An element can be stored multiple times in a container.

This interface in the "simple" package defines only the basic methods of a container.

See Also:
RankedSequence, PriorityQueue, Dictionary, Container

Method Index

 o isEmpty()
Tests if the container is empty.
 o size()
Return the number of elements stored in the container, where each element is counted according to is multiplicity.

Methods

 o size
 public abstract int size()
Return the number of elements stored in the container, where each element is counted according to is multiplicity.

Returns:
number of elements in the container.
 o isEmpty
 public abstract boolean isEmpty()
Tests if the container is empty.

Returns:
true if the container is empty, false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index