|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.util.SingletonEnumeration
public class SingletonEnumeration
The class that encapsulates one object into one element enumeration.
| Constructor Summary | |
|---|---|
SingletonEnumeration(java.lang.Object object)
|
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains next element. |
java.lang.Object |
nextElement()
Returns the next element of this enumeration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingletonEnumeration(java.lang.Object object)
object - object to be put into the enumeration| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationtrue if this enumeration contains it
false otherwise.public java.lang.Object nextElement()
nextElement in interface java.util.Enumerationjava.util.NoSuchElementException - if no more elements exist.
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||