org.apache.directory.api.util
Class SingletonEnumeration<T>
java.lang.Object
org.apache.directory.api.util.SingletonEnumeration<T>
- All Implemented Interfaces:
- Enumeration<T>, NamingEnumeration<T>
public class SingletonEnumeration<T>
- extends Object
- implements NamingEnumeration<T>
A NamingEnumeration over a single element.
- 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(T element)
- Creates a NamingEnumeration over a single element.
- Parameters:
element - TODO
close
public void close()
- Makes calls to hasMore to false even if we had more.
- Specified by:
close in interface NamingEnumeration<T>
- See Also:
NamingEnumeration.close()
hasMore
public boolean hasMore()
- Specified by:
hasMore in interface NamingEnumeration<T>
- See Also:
NamingEnumeration.hasMore()
next
public T next()
- Specified by:
next in interface NamingEnumeration<T>
- See Also:
NamingEnumeration.next()
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface Enumeration<T>
- See Also:
Enumeration.hasMoreElements()
nextElement
public T nextElement()
- Specified by:
nextElement in interface Enumeration<T>
- See Also:
Enumeration.nextElement()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.