<%bte.doc super="item.bte" %> <%bte.tpl name=pageTitle%>Basic Iterators and Enumerations<%/bte.tpl%> <%bte.tpl name=description%>Java libraries to provide basic iterator and enumerations: convert between iterators and enumerations and convert an array to an iterator or enumeration..<%/bte.tpl%> <%bte.tpl name=keywords%>enumerationiterator, enumeration iterator, arrayiterator, array iterator, arrayenumeration, array enumeration, iterator enumeration, iteratorenumeration, convert iterator to enumeration, java iterator to enumeration, convert enumeration to iterator, java enumeration to iterator, convert array to iterator, java array to iterator, convert array to enumeration java array to iterator<%/bte.tpl%> <%bte.tpl name=content%>

Example

Enumeration e = new IteratorEnumeration(
    collection.iterator()
);

Convert an Iterator to an Enumeration: IteratorEnumeration

[Download /w Source | Version History | Browse Source | Documentation]



Example

Iterator i = new EnumerationIterator(
    vector.elements()
);

Convert an Enumeration to an Iterator: EnumerationIterator

[Download /w Source | Version History | Browse Source | Documentation]



Example

Enumeration e = new ArrayEnumeration(
    new String[]{"one","two","three"}
);

Convert an array to an Enumeration: ArrayEnumeration

[Download /w Source | Version History | Browse Source | Documentation]



Example

Iterator i = new ArrayIterator(
    new String[]{"one","two","three"}
);

Convert an array to an Iterator: ArrayIterator

[Download /w Source | Version History | Browse Source | Documentation]


<%/bte.tpl%> <%/bte.doc%>