mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Basically, this commit splits test data from the from java-txt-kt to two pairs java-txt and kt-txt. This commit leads to some duplication in test data. This is temporary: in the platform types branch the test data for LoadJava tests will be changed dramatically, so duplication will go away
25 lines
820 B
Kotlin
25 lines
820 B
Kotlin
package test
|
|
|
|
import java.util.ArrayList
|
|
import org.jetbrains.annotations.*
|
|
|
|
public trait LoadIterableWithPropagation {
|
|
public trait LoadIterable<T> {
|
|
Mutable
|
|
public fun getIterable(): MutableIterable<T>?
|
|
public fun setIterable([Mutable] p0: MutableIterable<T>?)
|
|
|
|
ReadOnly
|
|
public fun getReadOnlyIterable(): Iterable<T>?
|
|
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>?)
|
|
}
|
|
|
|
public open class LoadIterableImpl<T> : LoadIterable<T> {
|
|
public override fun getIterable(): MutableIterable<T>? = ArrayList<T>()
|
|
public override fun setIterable(p0: MutableIterable<T>?): Unit {}
|
|
|
|
public override fun getReadOnlyIterable(): Iterable<T>? = ArrayList<T>()
|
|
public override fun setReadOnlyIterable(p0: Iterable<T>?): Unit {}
|
|
}
|
|
}
|