Kotlin頻出表現

 Kotlin頻出表現

Kotlinでよくつかう文/式等

TwitterID変えました。@lvla0805 -> @MoyuruAizawa

5f533179da1c82722252cbcb93e7356f?s=128

Moyuru Aizawa

November 28, 2016
Tweet

Transcript

  1. 3.
  2. 5.
  3. 6.
  4. 7.

    WBM

  5. 11.
  6. 22.

    ‣ ؔ਺ͭͷΠϯλʔϑΣʔεΛҾ਺ʹऔΔؔ਺ʹ͸ɺؔ਺Λ౉ͤ·͢ ‣ هड़ྔΊͬͪΌݮΔʜ 4". view.setOnClickListener({ view -> view.visibility =

    View.GONE }) view.setOnClickListener { view -> view.visibility = View.GONE } view.setOnClickListener { it.visibility = View.GONE }
  7. 23.

    MFU

  8. 25.
  9. 31.

    ‣ FRVBMT IBTI$PEF UP4USJOH DPQZ ΛίϯύΠϧ࣌ʹੜ੒ͯ͠ ͘ΕΔ ‣ Ξοϓσʔτ͞Εͳ͍FRVBMT ͱ͞Α͏ͳΒͰ͖Δɻ

    %BUB$MBTT data class Person(val firstName: String, val lastName: String, var age: Int)
  10. 35.

    ‣ ֦ுؔ਺Λ࢖ͬͯNPDLJUPΛ͍͍ײ͡ʹͯ͘͠ΕΔɻ ‣ ͜Ε΋ͳ͍ͱςετͰ͖ͳ͍ʜ LNPDLJUP var item: Item = mock()

    item.length().invoked.thenReturn(10) item.length().should be 10 item.verify().length()
  11. 36.