← Docs
kotlin-stdlib / kotlin.collections / java.util.Enumeration

Extensions for java.util.Enumeration

JVM
1.0

iterator

Creates an Iterator for an java.util.Enumeration , allowing to use it in for loops.

operator fun < T > Enumeration < T > . iterator ( ) : Iterator < T >
JVM
1.0

toList

Returns a list containing the elements returned by this enumeration in the order they are returned by the enumeration.

fun < T > Enumeration < T > . toList ( ) : List < T >
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .