Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #20030

Re: How convert Iterator into Enumeration

From Wanja Gayk <brixomatic@yahoo.com>
Newsgroups comp.lang.java.programmer
Subject Re: How convert Iterator into Enumeration
Date 2012-11-30 20:23 +0100
Organization Netfront http://www.netfront.net/
Message-ID <MPG.2b23262ddb28779a989740@202.177.16.121> (permalink)
References <k94u33$2vl$1@news.albasani.net> <er3cb8ldjksik6tmvplaj5fqgf6p6v842s@4ax.com>

Show all headers | View raw


In article <er3cb8ldjksik6tmvplaj5fqgf6p6v842s@4ax.com>, Roedy Green 
(see_website@mindprod.com.invalid) says...

> An Enumeration is a primitive time of Iterator.
> 
> You could write some code that in the constructor took an Iterator and
> behaved like an Enumerator. The Enumerator methods would make calls on
> the corresponding Iterator methods.

Be sure to evade the ConcurrentModificationException then.

Kind regards,
-Wanja-


-- 
..Alesi's problem was that the back of the car was jumping up and down 
dangerously - and I can assure you from having been teammate to 
Jean Alesi and knowing what kind of cars that he can pull up with, 
when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer]

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How convert Iterator into Enumeration Jan Burse <janburse@fastmail.fm> - 2012-11-28 12:55 +0100
  Re: How convert Iterator into Enumeration Roedy Green <see_website@mindprod.com.invalid> - 2012-11-28 05:22 -0800
    Re: How convert Iterator into Enumeration Wanja Gayk <brixomatic@yahoo.com> - 2012-11-30 20:23 +0100
  Re: How convert Iterator into Enumeration Jim Janney <jjanney@shell.xmission.com> - 2012-11-28 08:53 -0700
    Re: How convert Iterator into Enumeration Jim Janney <jjanney@shell.xmission.com> - 2012-11-28 11:11 -0700
      Re: How convert Iterator into Enumeration Roedy Green <see_website@mindprod.com.invalid> - 2012-11-28 12:36 -0800
        Re: How convert Iterator into Enumeration Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-11-28 13:00 -0800
        Re: How convert Iterator into Enumeration Jim Janney <jjanney@shell.xmission.com> - 2012-11-28 14:01 -0700
    Re: How convert Iterator into Enumeration Roedy Green <see_website@mindprod.com.invalid> - 2012-11-28 12:38 -0800
  Re: How convert Iterator into Enumeration Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-28 13:22 -0500
    Re: How convert Iterator into Enumeration Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-28 13:28 -0500
      Re: How convert Iterator into Enumeration markspace <-@.> - 2012-11-28 13:10 -0800
      Re: How convert Iterator into Enumeration Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-12-01 17:49 +0100

csiph-web