org.apache.directory.shared.ldap.util
Class SingletonEnumeration
java.lang.Object
org.apache.directory.shared.ldap.util.SingletonEnumeration
- All Implemented Interfaces:
- Enumeration, NamingEnumeration
public class SingletonEnumeration
- extends Object
- implements NamingEnumeration
A NamingEnumeration over a single element.
- Version:
- $Revision: 434411 $
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonEnumeration
public SingletonEnumeration(Object a_element)
- Creates a NamingEnumeration over a single element.
- Parameters:
a_element
- TODO
close
public void close()
- Makes calls to hasMore to false even if we had more.
- Specified by:
close
in interface NamingEnumeration
- See Also:
NamingEnumeration.close()
hasMore
public boolean hasMore()
- Specified by:
hasMore
in interface NamingEnumeration
- See Also:
NamingEnumeration.hasMore()
next
public Object next()
- Specified by:
next
in interface NamingEnumeration
- See Also:
NamingEnumeration.next()
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration
- See Also:
Enumeration.hasMoreElements()
nextElement
public Object nextElement()
- Specified by:
nextElement
in interface Enumeration
- See Also:
Enumeration.nextElement()
Copyright © 2004-2012. All Rights Reserved.