|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container
The common interface for all the mutable containers in JDSL. A container is a collection of elements, each of which is a generic Object. An element can be stored multiple times in a container. All containers organize a client's data elements, and the methods defined in this interface are those that any container should be able to perform on the data that it is organizing and storing. This class is distinct from the class java.awt.Container; therefore, if you are importing both packages, you must refer to it by its fully qualified name.
InspectableContainer
Method Summary | |
---|---|
Container |
newContainer()
Creates a new, empty container of the same class as this one (and therefore of the same interface as this one). |
java.lang.Object |
replaceElement(Accessor a,
java.lang.Object newElement)
Changes the element stored at an accessor. |
Methods inherited from interface nz.ac.waikato.jdsl.core.api.InspectableContainer |
---|
contains, elements, isEmpty, size |
Method Detail |
---|
Container newContainer()
java.lang.Object replaceElement(Accessor a, java.lang.Object newElement) throws InvalidAccessorException
a
- Accessor in this containernewElement
- to be stored at a
InvalidAccessorException
- if a is null or does not
belong to this container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |