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:
close
in interfaceNamingEnumeration<T>
- Throws:
NamingException
-
hasMore
- Specified by:
hasMore
in interfaceNamingEnumeration<T>
- Throws:
NamingException
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration<T>
-
next
- Specified by:
next
in interfaceNamingEnumeration<T>
- Throws:
NamingException
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<T>
-