public class IndexAssertionEnumeration extends java.lang.Object implements javax.naming.NamingEnumeration<IndexEntry>
| Modifier and Type | Field and Description |
|---|---|
private IndexAssertion |
assertion |
private IndexEntry |
candidate
The returned candidate
|
private java.util.Map<java.lang.Object,java.lang.Object> |
candidates
LUT used to avoid returning duplicates
|
private boolean |
checkDups |
private boolean |
hasMore |
private IndexEntry |
prefetched
The prefetched candidate
|
private javax.naming.NamingEnumeration<IndexEntry> |
underlying
The iteration cursor
|
| Constructor and Description |
|---|
IndexAssertionEnumeration(javax.naming.NamingEnumeration<IndexEntry> underlying,
IndexAssertion assertion) |
IndexAssertionEnumeration(javax.naming.NamingEnumeration<IndexEntry> underlying,
IndexAssertion assertion,
boolean enableDupCheck) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasMore() |
boolean |
hasMoreElements() |
IndexEntry |
next() |
IndexEntry |
nextElement() |
private void |
prefetch() |
private final IndexEntry prefetched
private final IndexEntry candidate
private final javax.naming.NamingEnumeration<IndexEntry> underlying
private final java.util.Map<java.lang.Object,java.lang.Object> candidates
private final IndexAssertion assertion
private final boolean checkDups
private boolean hasMore
public IndexAssertionEnumeration(javax.naming.NamingEnumeration<IndexEntry> underlying, IndexAssertion assertion) throws javax.naming.NamingException
javax.naming.NamingExceptionpublic IndexAssertionEnumeration(javax.naming.NamingEnumeration<IndexEntry> underlying, IndexAssertion assertion, boolean enableDupCheck) throws javax.naming.NamingException
javax.naming.NamingExceptionpublic IndexEntry nextElement()
nextElement in interface java.util.Enumeration<IndexEntry>Enumeration.nextElement()public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration<IndexEntry>Enumeration.hasMoreElements()public IndexEntry next() throws javax.naming.NamingException
next in interface javax.naming.NamingEnumeration<IndexEntry>javax.naming.NamingExceptionNamingEnumeration.next()public boolean hasMore()
hasMore in interface javax.naming.NamingEnumeration<IndexEntry>NamingEnumeration.hasMore()public void close()
throws javax.naming.NamingException
close in interface javax.naming.NamingEnumeration<IndexEntry>javax.naming.NamingExceptionNamingEnumeration.close()private void prefetch()
throws javax.naming.NamingException
javax.naming.NamingException