FileDocCategorySizeDatePackage
RecyclableNamingEnumeration.javaAPI DocGlassfish v2 API3809Fri May 04 22:33:00 BST 2007org.apache.naming.resources

RecyclableNamingEnumeration

public class RecyclableNamingEnumeration extends Object implements NamingEnumeration
Naming enumeration implementation.
author
Remy Maucherat
version
$Revision: 1.3 $ $Date: 2007/05/05 05:33:00 $

Fields Summary
protected Vector
entries
Entries.
protected Enumeration
enumeration
Underlying enumeration.
Constructors Summary
public RecyclableNamingEnumeration(Vector entries)

        this.entries = entries;
        recycle();
    
Methods Summary
public voidclose()
Closes this enumeration.

    
public booleanhasMore()
Determines whether there are any more elements in the enumeration.

        return enumeration.hasMoreElements();
    
public booleanhasMoreElements()

        return enumeration.hasMoreElements();
    
public java.lang.Objectnext()
Retrieves the next element in the enumeration.

        return nextElement();
    
public java.lang.ObjectnextElement()

        return enumeration.nextElement();
    
voidrecycle()
Recycle.

        enumeration = entries.elements();