https://kotlinlang.org logo
Title
b

Bernhard

08/21/2018, 11:10 AM
interface EntityRepository<T> {

    fun fullTextSearch(text: String?, selectedIds: Array<String>?, exclude: Boolean?, size: Int): List<T>

    fun textSearch(text: String?, size: Int): List<T> {
        return fullTextSearch(text, null, null, size)
    }
}
c

Czar

08/21/2018, 12:16 PM
This is not "really" a default method on JVM. You have to explicitly mark it as one if you want it to work like it does in Java: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-default/index.html
b

Bernhard

08/21/2018, 2:21 PM
Thank you