MG
Size: a a a
MG
MG
operator fun <T> plus(vector: Vector<T>): Vector<Any> {
aswell)MG
MG
Pair<Float, Double>
or Pair<Double, Float>
to a Pair<Double, Double>
i would expect the output to be of type Pair<Double, Double>
instead of Pair<Any, Any>
E🎸
AM
class MyClass(val field: FieldType): FieldType by field
F
interface DataProvider<T,V> {
fun getData(file: T): T
fun writeData(file: T, content: V){}
}
Н
AM
interface DataProvider<T> {
fun getData(file: T): T
}
interface WriteableDataProvider<T,V>: DataProvider<T> {
fun writeData(file: T, content: V)
}
F
interface DataProvider<T> {
fun getData(file: T): T
}
interface WriteableDataProvider<T,V>: DataProvider<T> {
fun writeData(file: T, content: V)
}
AM
AM
interface Collection<T> {и
val size: Int
fun get(pos: Int): T
fun getAll(): List<T> = List(size) { get(it) }
}
interface Listener {(это может быть полезно, к примеру, для сохранения бинарной совместимости с пролыми версиями, где было меньше параметров)
fun callback(arg1: Int, arg2: Float) {
callback(arg2)
}
fun callback(arg2: Float) {}
}
F
AM
F
AN
AM
D
D
AN