首页 > 其他 > 详细

operators(scala)

时间:2017-09-24 09:39:01      阅读:260      评论:0      收藏:0      [点我收藏+]

1  _=

setters:以_=接在getter的identifier后,并紧跟参数

def y_= (newValue: Int): Unit = {
    if (newValue < bound) _y = newValue else printWarning
  }

 

operators(scala)

原文:http://www.cnblogs.com/yumanman/p/7586143.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!