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
See Also: nullObject#NullObject

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

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