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
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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。