Created
March 31, 2018 09:32
-
-
Save ashwin-sp/0cca8b0c299a7f52e0e67f4d2a7f09eb to your computer and use it in GitHub Desktop.
Kotlin Object class reference from Java code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Test { | |
internal fun demoMethod() { | |
println("demoMethod for singleton") | |
} | |
} | |
/** Equivalent Java Reference | |
Test.INSTANCE.demoMethod(); | |
**/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment