|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.ejb21.CollectionEnum
public class CollectionEnum
This class implements the java.util.Enumeration and the java.io.Serializable interfaces.
This class is used as the return value type of the implementation of the finder methods
which return a collection.
Indeed, the EJB spec. tells that the type for a collection is the java.util.Enumeration.
In addition the return value type must be legal type for Java RMI (ie. serializable type).
Constructor Summary | |
---|---|
CollectionEnum()
Create an empty CollectionEnum |
|
CollectionEnum(Vector v)
Create a CollectionEnum from a vector |
Method Summary | |
---|---|
void |
addElement(Object obj)
Add an element |
boolean |
hasMoreElements()
Implements Enumeration.hasMoreElements() |
Object |
nextElement()
Implements Enumeration.nextElement() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionEnum()
public CollectionEnum(Vector v)
Method Detail |
---|
public void addElement(Object obj)
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement() throws NoSuchElementException
nextElement
in interface Enumeration
NoSuchElementException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |