public class LimitedNamingEnumeration<T> extends Object implements NamingEnumeration<T>
NamingEnumeration and only return up to a limited number of elements.| Constructor and Description |
|---|
LimitedNamingEnumeration(NamingEnumeration<T> ne,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getLimit() |
boolean |
hasMore() |
boolean |
hasMoreElements() |
T |
next() |
T |
nextElement() |
public LimitedNamingEnumeration(NamingEnumeration<T> ne, int limit)
public int getLimit()
public void close()
throws NamingException
close in interface NamingEnumeration<T>NamingExceptionpublic boolean hasMore()
throws NamingException
hasMore in interface NamingEnumeration<T>NamingExceptionpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<T>public T next() throws NamingException
next in interface NamingEnumeration<T>NamingExceptionpublic T nextElement()
nextElement in interface Enumeration<T>Copyright © 2018 Atlassian. All rights reserved.