
com.Ostermiller.util.Iterator_Enumeration.bte Maven / Gradle / Ivy
Go to download
Open source (GPL) Java utilities maintained by Stephen Ostermiller with help from many contributors.
The newest version!
<%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=topcontent%>
Classes to convert between enumerations and iterators. Also classes to convert arrays to enumerations or iterators.
<%/bte.tpl%>
<%bte.tpl name=content%>
Example
Enumeration e = new IteratorEnumeration(
collection.iterator()
);
Convert an Iterator to an Enumeration: IteratorEnumeration
Example
Iterator i = new EnumerationIterator(
vector.elements()
);
Convert an Enumeration to an Iterator: EnumerationIterator
Example
Enumeration e = new ArrayEnumeration(
new String[]{"one","two","three"}
);
Convert an array to an Enumeration: ArrayEnumeration
Example
Iterator i = new ArrayIterator(
new String[]{"one","two","three"}
);
Convert an array to an Iterator: ArrayIterator
<%/bte.tpl%>
<%bte.tpl name=linkIteratorEnumeration%>Iterators and Enumerations
<%/bte.tpl%>
<%/bte.doc%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy