Class EmptyEnumeration<T>
java.lang.Object
org.apache.directory.api.util.EmptyEnumeration<T>
- Type Parameters:
T- The element in the enumeration
- All Implemented Interfaces:
Enumeration<T>, NamingEnumeration<T>
An empty NamingEnumeration without any values: meaning
hasMore/hasMoreElements() always returns false, and next/nextElement() always
throws a NoSuchElementException.
- Author:
- Apache Directory Project
-
Constructor Details
-
EmptyEnumeration
public EmptyEnumeration()Public constructor
-
-
Method Details
-
close
public void close()Close the enumeration- Specified by:
closein interfaceNamingEnumeration<T>- See Also:
-
hasMore
Always returns false.- Specified by:
hasMorein interfaceNamingEnumeration<T>- Throws:
NamingException- See Also:
-
next
Always throws NoSuchElementException.- Specified by:
nextin interfaceNamingEnumeration<T>- Throws:
NamingException- See Also:
-
hasMoreElements
public boolean hasMoreElements()Always return false.- Specified by:
hasMoreElementsin interfaceEnumeration<T>- See Also:
-
nextElement
Always throws NoSuchElementException.- Specified by:
nextElementin interfaceEnumeration<T>- See Also:
-