LinkedHashSet
typealias LinkedHashSet<E> = LinkedHashSet<E>
Platform and version requirements: Kotlin 1.1, JVM
open class LinkedHashSet<E> : HashSet<E>
Platform and version requirements: JS
The implementation of the MutableSet interface, backed by a LinkedHashMap instance.
This implementation preserves the insertion order of elements during the iteration.
Constructors
<init> | LinkedHashSet() LinkedHashSet(initialCapacity: Int, loadFactor: Float = 0.0f) Constructs a new empty LinkedHashSet. LinkedHashSet(elements: Collection<E>) Constructs a new LinkedHashSet filled with the elements of the specified collection. |
Inherited Properties
size | open val size: Int Returns the size of the collection. |
Inherited Functions
clear | open fun clear() Removes all elements from this collection. |
isEmpty | open fun isEmpty(): Boolean Returns true if the collection is empty (contains no elements), false otherwise. |
iterator | open fun iterator(): MutableIterator<E> Returns an iterator over the elements of this object. |