Friday, August 29, 2008

Awesome Groovy Collections!

There is a short cut for:

if (errorMap?.size() > 0) {
// do something
}

to
if (errorMap) {
// do something
}



same thing in JSP, you can use:



sublist

def devices
int start
int end
def subdevices = devices[start..end]

No comments: