Skip to content

Instantly share code, notes, and snippets.

@satoshun
Created April 10, 2018 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satoshun/25309599e7be28159085112a950670d7 to your computer and use it in GitHub Desktop.
Save satoshun/25309599e7be28159085112a950670d7 to your computer and use it in GitHub Desktop.
class HogeActivity : Activity() {
 private fun isHeavyUser(loginCount: Int, firstAccess: Boolean) : Boolean() {
 // hyper HeavyUser if loginCount > 100. hyper HeavyUser doesn’t contain a HeavyUser.
 return firstAccess || (loginCount >= 10 && loginCount <= 100)
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment