This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Java Enumeration to scala Seq/Iterable/List?

1 reply
mailleux
Joined: 2008-08-23,
User offline. Last seen 4 years 7 weeks ago.
I was wondering if there is an easy way to get a Java Enumeration into a  Scala Sequence. The enumeraion has on hasMoreElement and nextElement. I failed to find a way to extend the base Seq?

Thomas
Chris Twiner
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Java Enumeration to scala Seq/Iterable/List?

hiya

http://code.google.com/p/scala-scales/source/browse/trunk/scalesUtils/sr...

cheers,
Chris

On 1/15/09, Thomas Sant Ana wrote:
> I was wondering if there is an easy way to get a Java Enumeration into a
> Scala Sequence. The enumeraion has on hasMoreElement and nextElement. I
> failed to find a way to extend the base Seq?
>
> Thomas
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland