Example usage for org.apache.commons.collections.iterators IteratorEnumeration IteratorEnumeration

List of usage examples for org.apache.commons.collections.iterators IteratorEnumeration IteratorEnumeration

Introduction

In this page you can find the example usage for org.apache.commons.collections.iterators IteratorEnumeration IteratorEnumeration.

Prototype

public IteratorEnumeration() 

Source Link

Document

Constructs a new IteratorEnumeration that will not function until #setIterator(Iterator) setIterator is invoked.

Usage

From source file:org.apache.cocoon.components.flow.WebContinuation.java

/**
 * Enumerate the attributes of this continuation.
 * /*from  w  ww  . j av  a  2 s . c o  m*/
 * @return an enumeration of strings
 */
public Enumeration getAttributeNames() {
    if (this.attributes == null)
        return new IteratorEnumeration();

    ArrayList keys = new ArrayList(this.attributes.keySet());
    return new IteratorEnumeration(keys.iterator());
}