W3cubDocs

/Kotlin

Extensions for java.util.Enumeration

iterator

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

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

toList

fun <T> Enumeration<T>.toList(): List<T>

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

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/java.util.-enumeration/