com.togethersoft.openapi.util.enum
Class EmptyEnumeration


public final class EmptyEnumeration
implements Enumeration, NullObject

This class presents always empty enumeration. It has private constructor
and can't to be instantiated or derived.

Author:
TogetherSoft
Since: Together 4.0
See Also: nullObject#NullObject

Field Summary
 private static EnumerationourInstance
           

Constructor Summary
 private EmptyEnumeration()
          This class has private constructor and can't to be created by anyone

Method Summary
 static EnumerationgetInstance()
           
 booleanhasMoreElements()
           
 ObjectnextElement()
           

Field Detail

ourInstance

private static Enumeration ourInstance
Constructor Detail

EmptyEnumeration

private EmptyEnumeration()
This class has private constructor and can't to be created by anyone
Method Detail

getInstance

public static Enumeration getInstance()
Returns: An empty enumeration. If enumeration does not exist, creates it.

hasMoreElements

public boolean hasMoreElements()
Returns: Always false

nextElement

public Object nextElement()
Returns: Always null

Association Links

to Class java.util.Enumeration