官术网_书友最值得收藏!

  • Learning Scala Programming
  • Vikash Sharma
  • 73字
  • 2021-06-30 19:07:51

Unit

Scala's Unit is a subtype of AnyVal, and the implementation contains the equals method, which returns a true value if the passed argument is also a Unit which means a value (), that is, just a pair of parentheses otherwise false. Other methods are hashCode and toString, which return an implementation-specific hash code and () respectively, because Unit has only one value: (), which is equivalent to Java's void type.

主站蜘蛛池模板: 中山市| 华宁县| 商水县| 利津县| 磴口县| 宣城市| 大竹县| 介休市| 虎林市| 顺平县| 榆树市| 蕲春县| 绵阳市| 天祝| 天峨县| 宜城市| 博客| 三门峡市| 潜江市| 通山县| 湖南省| 南郑县| 准格尔旗| 玉山县| 抚松县| 松潘县| 利津县| 肥东县| 府谷县| 楚雄市| 衡南县| 台北县| 合江县| 北川| 贵阳市| 巴南区| 太保市| 沂南县| 通化县| 金川县| 汾阳市|