WeakStack

A stack which keeps only weak references

Author

F43nd1r

Since

5.3.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun add(element: T?): Boolean
Link copied to clipboard
open override fun addAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(element: T?): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in T>)
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<T?>
Link copied to clipboard
inline fun <T, R : Any> Iterable<T>.mapNotNullToSparseArray(transform: (T) -> Pair<Int, R>?): SparseArray<R>
Link copied to clipboard
open fun parallelStream(): Stream<T>
Link copied to clipboard
fun peek(): T
Link copied to clipboard
fun pop(): T
Link copied to clipboard
open override fun remove(element: T?): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<T>): Boolean
Link copied to clipboard
open fun removeIf(p0: Predicate<in T>): Boolean
Link copied to clipboard
open override fun retainAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun spliterator(): Spliterator<T>
Link copied to clipboard
open fun stream(): Stream<T>
Link copied to clipboard
open fun toArray(): Array<Any>
open fun <T : Any> toArray(p0: Array<T>): Array<T>
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
open override fun toString(): String