Path: csiph.com!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jim Janney Newsgroups: comp.lang.java.programmer Subject: Re: How convert Iterator into Enumeration Date: Wed, 28 Nov 2012 08:53:26 -0700 Organization: overcanopied with luscious woodbine Lines: 13 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="75975abe3fe3503ca7350803ab98e478"; logging-data="10805"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MtyNbKQn8FPpYPlckD5mA" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:T+GrpHLBTAMTygXyo187KfgpBEA= sha1:amVHZ7a0zRhEnD7f76YJ9O5g0R0= Xref: csiph.com comp.lang.java.programmer:20003 Jan Burse writes: > Dear All, > > Is there a fast way to have an Enumeration from a HashMap? > IteratorUtils in Apache Commons has a conversion method. http://commons.apache.org/collections/api-3.1/org/apache/commons/collections/IteratorUtils.html#asEnumeration%28java.util.Iterator%29 -- Jim Janney