|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.util.SingleItemEnumeration
A dummy Enumeration that lists exactly one element. This is just a helper for methods that want or need to return an Enumeration but have only one element.
Copyright 2004 SAP AG
| Constructor Summary | |
SingleItemEnumeration(Object theItem)
Create a new Enumeration of one. |
|
| Method Summary | |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
Object |
next()
Returns the next element in the interation. |
Object |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SingleItemEnumeration(Object theItem)
theItem - the single item for the enumeration| Method Detail |
public boolean hasMoreElements()
hasMoreElements in interface Enumerationtrue if and only if this enumeration object
contains at least one more element to provide;
false otherwise.public Object nextElement()
nextElement in interface EnumerationNoSuchElementException - if no more elements exist.public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface IteratorNoSuchElementException - iteration has no more elements.public void remove()
remove in interface IteratorUnsupportedOperationException - if the remove
operation is not supported by this Iterator.
IllegalStateException - if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
method.
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||