|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.TupleEnumeration
A NamingEnumeration that returns underlying Iterator values for a single key as Tuples.
WARNING: The tuple returned is reused every time for efficiency and populated a over and over again with the new value. The key never changes.
Constructor Summary | |
TupleEnumeration(java.lang.Object key,
java.util.Iterator iterator)
Creates a cursor over an Iterator of single key's values |
Method Summary | |
void |
close()
|
boolean |
hasMore()
Checks if another value is available. |
boolean |
hasMoreElements()
Checks if another value is available. |
java.lang.Object |
next()
Gets the next value as a Tuple. |
java.lang.Object |
nextElement()
Gets the next value as a Tuple. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TupleEnumeration(java.lang.Object key, java.util.Iterator iterator)
key
- the keys whose duplicate values are to be returnediterator
- the underlying iterator this cursor usesMethod Detail |
public java.lang.Object next()
next
in interface javax.naming.NamingEnumeration
NamingEnumeration.next()
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
Enumeration.nextElement()
public boolean hasMore()
hasMore
in interface javax.naming.NamingEnumeration
NamingEnumeration.hasMore()
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
Enumeration.hasMoreElements()
public void close()
close
in interface javax.naming.NamingEnumeration
NamingEnumeration.close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |