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

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.

主站蜘蛛池模板: 始兴县| 伊宁市| 永靖县| 吴忠市| 晋江市| 海安县| 文山县| 图们市| 工布江达县| 昭觉县| 财经| 平湖市| 佛山市| 许昌县| 两当县| 桑日县| 临澧县| 云龙县| 日照市| 越西县| 景德镇市| 宜昌市| 贵定县| 江川县| 志丹县| 江川县| 广昌县| 绥中县| 甘德县| 琼海市| 乌拉特中旗| 调兵山市| 五原县| 靖远县| 贵溪市| 大兴区| 昌都县| 西安市| 齐齐哈尔市| 临汾市| 麻城市|