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.
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. |
open val size: Int Returns the size of the collection. |
open fun add(element: E): Boolean Adds the specified element to the collection. | |
open fun clear() Removes all elements from this collection. | |
open operator fun contains(element: E): Boolean Checks if the specified element is contained in this collection. | |
open fun isEmpty(): Boolean Returns | |
open fun iterator(): MutableIterator<E> Returns an iterator over the elements of this object. | |
open fun remove(element: E): Boolean Removes a single instance of the specified element from this collection, if it is present. |
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-linked-hash-set/index.html