public class DefaultObjectEntryEnumeration extends java.lang.Object implements ObjectEntryEnumeration, CountableObjectEntryEnumeration
This class is a convenience helper class in creating ObjectEntryEnumerations.
ObjectEntryEnumerationAPPROXIMATECOUNT, BASECOUNT, EXACTCOUNT, PARTIALCOUNT, UNKNOWNCOUNT| Constructor and Description |
|---|
DefaultObjectEntryEnumeration()
Creates an empty DefaultObjectEntryEnumeration.
|
DefaultObjectEntryEnumeration(java.util.Enumeration list)
Create a DefaultObjectEntryEnumeration from an Enumeration of ObjectEntrys.
|
DefaultObjectEntryEnumeration(ObjectEntry entry)
This is a convenience constructor for creating an ObjectEntryEnumeration
with a single entry.
|
DefaultObjectEntryEnumeration(ObjectEntry[] list)
Creates a DefaultObjectEntryEnumeration from an array of ObjectEntrys.
|
DefaultObjectEntryEnumeration(java.util.Vector list)
Creates a DefaultObjectEntryEnumeration from a Vector of ObjectEntrys.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Return the number of ObjectEntries in the Enumeration.
|
int |
getCountReliability()
Returns an integer which is a representation of the reliability of the count of
objects in this enumeration.
|
boolean |
hasMoreElements()
Returns a boolean determining if there are more children in the enumeration.
|
ObjectEntry |
next()
Return the next child as an ObjectEntry.
|
java.lang.Object |
nextElement()
Return the next child as an Object (must still be an ObjectEntry).
|
public DefaultObjectEntryEnumeration()
public DefaultObjectEntryEnumeration(ObjectEntry entry)
entry - ObjectEntry from which to create a simple
enumeration.public DefaultObjectEntryEnumeration(ObjectEntry[] list)
list - ObjectEntry array from which to create a simple
enumeration.public DefaultObjectEntryEnumeration(java.util.Vector list)
list - ObjectEntry vector from which to create a simple
enumeration.public DefaultObjectEntryEnumeration(java.util.Enumeration list)
list - ObjectEntry enumeration from which to create a simple
enumeration.public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationpublic java.lang.Object nextElement()
nextElement in interface java.util.Enumerationpublic ObjectEntry next() throws java.util.NoSuchElementException
next in interface ObjectEntryEnumerationjava.util.NoSuchElementException - Throws when there is no
'next' element.public int getCount()
getCount in interface CountableObjectEntryEnumerationpublic int getCountReliability()
getCountReliability in interface CountableObjectEntryEnumeration
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.