加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Groovy Java Extensions

发布时间:2020-12-14 16:55:33 所属栏目:大数据 来源:网络整理
导读:Object Extensions: each,collect,find,findAll,any,every dump:take a peek into an object inspect:intended to tell you what input would be needed to create an object identity/with:context method,to call multiple methods on an object sleep:ign
Object Extensions:
each,collect,find,findAll,any,every

dump:take a peek into an object

inspect:intended to tell you what input would be needed to create an object

identity/with:context method,to call multiple methods on an object

sleep:ignores interrupts while sleeping for the given number of milliseconds

Indirect Property Access: def obj = new Object()? obj.porperty = value

Indirect Method Invoke: def obj = new Object()? obj.invokeMethod("method",parameters)

Other Extensions: java.lang:plus=>+,next=>++ Number:upto,downto step java.io:eachFile,eachDir,eachLine,filterLine,withStream,withWriter,withReader,iterator,leftShift=>'<<' java.util:asImmutable,asSynchronized,inject java.util.Timer:runAfter

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读