- 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.
推薦閱讀
- 高手是如何做產(chǎn)品設(shè)計(jì)的(全2冊(cè))
- 一步一步學(xué)Spring Boot 2:微服務(wù)項(xiàng)目實(shí)戰(zhàn)
- Visual C++串口通信技術(shù)詳解(第2版)
- Mastering Scientific Computing with R
- Cassandra Data Modeling and Analysis
- Spring實(shí)戰(zhàn)(第5版)
- MongoDB權(quán)威指南(第3版)
- 飛槳PaddlePaddle深度學(xué)習(xí)實(shí)戰(zhàn)
- Unity UI Cookbook
- Mastering React
- Python語(yǔ)言實(shí)用教程
- Practical Game Design with Unity and Playmaker
- 網(wǎng)絡(luò)數(shù)據(jù)采集技術(shù):Java網(wǎng)絡(luò)爬蟲(chóng)實(shí)戰(zhàn)
- 虛擬現(xiàn)實(shí)建模與編程(SketchUp+OSG開(kāi)發(fā)技術(shù))
- Visual Basic語(yǔ)言程序設(shè)計(jì)上機(jī)指導(dǎo)與練習(xí)(第3版)