How to force some method to be visible only to kotlin

Viewed 615

I want some method to be visible only to kotlin code and not to Java code.

For example, here is a method fun method(){} that can only be called in kotlin code and cannot be called in Java code.

2 Answers
Related