URL: http://hansamann.podspot.de/files/grails_podcast_episode_40.mp3
This snippet gives you some interesting examples about Groovy Truth. Listen to the audio to get the best learning experience. Simply right-click on the title above to download the mp3 file of this part of the series.
The Groovy Series is part of the Grails Podcast and can be subscribed to via: http://hansamann.podspot.de/rss. The series is produced by Dierk König and Sven Haiges, further information about the topic of this episode can be found in the book
Groovy in Action - http://groovy.canoo.com/gina
//boolean expressions are used all over, so we first examine The Groovy Truth //any type can be evaluated as a boolean expression, a few specialties: //Boolean //Matcher //Collection assert numbers //true, as numbers in not empty numbers = [] //The same with maps, empty maps are false //String assert 'This is true' //GStrings s = 'x' //Number //Any object reference that is non-null is true!
Comments
Subscribe to comments
- Posted By: hansamann on April 25, 2007
- Posted By: hansamann on April 25, 2007
You need to login to post a comment.
