Package com.atlassian.crowd.directory
Class LimitedNamingEnumeration<T>
java.lang.Object
com.atlassian.crowd.directory.LimitedNamingEnumeration<T>
- All Implemented Interfaces:
Enumeration<T>,NamingEnumeration<T>
Wrap a
NamingEnumeration and only return up to a limited number of elements.-
Constructor Details
-
LimitedNamingEnumeration
-
-
Method Details
-
getLimit
public int getLimit() -
close
- Specified by:
closein interfaceNamingEnumeration<T>- Throws:
NamingException
-
hasMore
- Specified by:
hasMorein interfaceNamingEnumeration<T>- Throws:
NamingException
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<T>
-
next
- Specified by:
nextin interfaceNamingEnumeration<T>- Throws:
NamingException
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<T>
-