Groovy for Domain-specific Languages - Second Edition by Fergal Dearle

Groovy for Domain-specific Languages - Second Edition by Fergal Dearle

Author:Fergal Dearle [Dearle, Fergal]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2015-09-28T04:00:00+00:00


Conveniently, this pattern is the same as the one used in Groovy categories, which means that the Apache Commons Lang Util classes can all be dropped straight into a use block. So all of these useful utility classes are ready to be used in your Groovy code as categories:

import org.apache.commons.lang.StringUtils expect: use (StringUtils) { "org.apache.commons.lang3".split(".") == ["org", "apache", "commons", "lang3"] }

Note

You can also use the @Category annotation in association with a class.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.