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

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.

主站蜘蛛池模板: 延吉市| 肃南| 商河县| 格尔木市| 从江县| 增城市| 浙江省| 灵丘县| 广平县| 湘乡市| 于都县| 兴海县| 罗平县| 龙口市| 怀柔区| 拉孜县| 新昌县| 从江县| 武功县| 绍兴市| 福鼎市| 重庆市| 河间市| 招远市| 津市市| 尼勒克县| 五大连池市| 平昌县| 黄骅市| 英德市| 三江| 寿阳县| 历史| 敦煌市| 佛山市| 彭泽县| 安乡县| 额尔古纳市| 普兰店市| 苏尼特右旗| 乐都县|