标签:setter pre nbsp unit code logs style col value
1 _=
setters:以_=接在getter的identifier后,并紧跟参数
def y_= (newValue: Int): Unit = { if (newValue < bound) _y = newValue else printWarning }
标签:setter pre nbsp unit code logs style col value
原文地址:http://www.cnblogs.com/yumanman/p/7586143.html