Class SingletonEnumeration<T>
java.lang.Object
org.apache.directory.api.util.SingletonEnumeration<T>
- Type Parameters:
T- The element in the enumeration
- All Implemented Interfaces:
Enumeration<T>, NamingEnumeration<T>
A NamingEnumeration over a single element.
- Author:
- Apache Directory Project
-
Constructor Summary
ConstructorsConstructorDescriptionSingletonEnumeration(T element) Creates a NamingEnumeration over a single element. -
Method Summary
-
Constructor Details
-
SingletonEnumeration
Creates a NamingEnumeration over a single element.- Parameters:
element- The element to store in this enumeration
-
-
Method Details
-
close
public void close()Makes calls to hasMore to false even if we had more.- Specified by:
closein interfaceNamingEnumeration<T>- See Also:
-
hasMore
public boolean hasMore()- Specified by:
hasMorein interfaceNamingEnumeration<T>- See Also:
-
next
- Specified by:
nextin interfaceNamingEnumeration<T>- See Also:
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<T>- See Also:
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<T>- See Also:
-