mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +00:00
11 lines
413 B
Kotlin
Vendored
11 lines
413 B
Kotlin
Vendored
// IGNORE_ANNOTATIONS
|
|
|
|
inline class InlineCollection<T>(private val c: Collection<T>) : Collection<T> {
|
|
override val size: Int get() = c.size
|
|
override fun contains(element: T): Boolean = c.contains(element)
|
|
override fun containsAll(elements: Collection<T>): Boolean = c.containsAll(elements)
|
|
override fun isEmpty(): Boolean = c.isEmpty()
|
|
override fun iterator(): Iterator<T> = c.iterator()
|
|
}
|
|
|