Skip to content

Instantly share code, notes, and snippets.

@trukhinyuri
Created March 15, 2012 07:40
Show Gist options
  • Select an option

  • Save trukhinyuri/2042762 to your computer and use it in GitHub Desktop.

Select an option

Save trukhinyuri/2042762 to your computer and use it in GitHub Desktop.
BackingProperty
private var _table : Map<String, Int>? = null
public val table : Map<String, Int>
get() {
if (_table == null)
_table = HashMap() // Тип параметров выведен
return _table ?: throw AssertionError("Set to null by another thread")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment