Thursday 15 September 2011

grails - Is there a better way to write this null check, and a non-empty check, in groovy? -


Before performing some arguments

I need to check a blank / empty on some code I have an item, because I think ! Member.. Empty is not correct.

Is there a crappy way of writing the following?

  if (members & members.empty) {// some tasks}    

Check with a collection of empty checks (empty collections) Has been emphasized with false ). Jai Ho . :)

No comments:

Post a Comment