https://kotlinlang.org logo
#announcements
Title
# announcements
r

rrader

09/01/2019, 4:49 PM
What is equivalent of Java
"X-Secret"::equalsIgnoreCase
?
l

LeoColman

09/01/2019, 4:50 PM
The
equals
method has an
ignoreCase
parameter
r

rrader

09/01/2019, 5:30 PM
I mean alternative to that syntax, in Java it return
BinaryOperator
s

Shawn

09/01/2019, 7:22 PM
@rrader are you asking how to get an instance method reference? the syntax is the same in Kotlin as it is in Java, and it looks like you got it already
the function type might technically be a bit odd though, maybe like
KFunction1<String, Boolean>
?
r

rrader

09/02/2019, 10:23 AM
@Shawn thank you, in Kotlin there is no
equalsIgnoreCase
method
👍 1