Files
kotlin-fork/compiler/testData/psi/examples/priorityqueues/PriorityQueueAsPushPop.kt
T

7 lines
221 B
Kotlin
Vendored

class PriorityQueueAsPushPop<T>(wrapped : IPriorityQueue<T>) : IPushPop<T> {
override fun pop() = wrapped.extract()
override fun push(item : T) = wrapped.add(item)
override val isEmpty
get() = wrapped.isEmpty
}