Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.poseidon.util

Class EnumerationSingle

com.gentleware.poseidon.util.EnumerationSingle

public class EnumerationSingle


A enumeration that has exactly one element. Functially equivelant to:

Vector v = new Vector(); v.addElement(obj); return v.elements();

This is useful when you must pass or return an enumeration, but you do not have many elements.


 Attribute Summary
Object  _element
 
arrow_up
 

 Constructor Summary
public   EnumerationSingle(Object ele)
 
arrow_up
 

 Method Summary
public boolean   hasMoreElements()
 
public Object   nextElement()
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

_element

Object _element

arrow_up
 Constructor Detail

EnumerationSingle

public EnumerationSingle EnumerationSingle(Object ele)

Parameters:
ele -
Returns:
arrow_up
 Method Detail

hasMoreElements

public boolean hasMoreElements()

Returns:
arrow_up


nextElement

public Object nextElement()

Returns:
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.