Files
kotlin-fork/compiler/testData/psi/examples/priorityqueues/PriorityQueueAsPushPop.kt
T
2013-09-17 18:10:00 +04:00

7 lines
221 B
Kotlin

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
}