ͲΜͳϨϏϡʔίϝϯτΛॻ͘ʁ
/**ɹA collection of `Foo`, which provides ... */
class FooList(...) {
/** True if this list is ordered. */
val ordered: Boolean get() { ... }
/** Returns a new instance with reversed order */
fun reversed(): FooList { ... }
/** Returns a new mutable `MutableFooList` from the elements. */
fun mutating(): MutableFooList { ... }
}
ͲΜͳϨϏϡʔίϝϯτΛॻ͘ʁ
fun getDescription(keyword: String): String
ϨϏϡʔΞ: ͘ΘΕΔؔͳͷͰίϝϯτΛॻ͍ͯԼ͍͞ɻ
ྫ͑ɺΤοδέʔεͱ͍ͬͨҙ͕͋Δͱࢥ͍·͢ɻ
ϨϏϡʔΠ: ॻ͖·ͨ͠ɻ
/**
* Returns an empty string when the keyword is not registered.
*/
fun getDescription(keyword: String): String
ࠓճͷ
/**
* Returns an empty string when the keyword is not registered.
*/
fun getDescription(keyword: String): String
υΩϡϝϯςʔγϣϯͷׂΛՌ͍ͨͯ͠ͳ͍
- ʮ௨ৗʯԿΛ͢Δ͔Θ͔Βͳ͍
- Τοδέʔεʹ͍ͭͯॻ͔Ε͍ͯΔ
ࠓճͷϨϏϡʔίϝϯτྫ
> ࣍ͷΑ͏ͳυΩϡϝϯςʔγϣϯΛॻ͍͍ͯͩ͘͞
/**
* Returns "description" of [keyword] if it's registered by
* [registerDescription].
*
* This returns an empty string when the keyword is not registered.
*/
> υΩϡϝϯςʔγϣϯͷ࠷ॳͷҰจͰɺͦͷ͕ؔԿΛ͢Δ͔
ΛҰݴͰઆ໌͢Δඞཁ͕͋Γ·͢ɻ