Search code examples
javascalaenumeration

How to covert Scala Seq to Java Enumeration


I want to convert a scala Seq to Java java.util.Enumeration any tips?


Solution

  • In case someone else is interested in the answer:

    By importing scala.collection.JavaConversions I could use asJavaEnumeration[A](i: Iterator[A]): Enumeration[A] to do the job.