Last active
August 29, 2015 14:03
-
-
Save jeantessier/50defa2bec044d091dfc to your computer and use it in GitHub Desktop.
Example of stripped down notation for Groovy, compared to Java.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.lang.StringUtils | |
class CopyMatcher { | |
def triggerWord | |
def matches(product) { | |
product.productCopy.any { StringUtils.containsIgnoreCase it.copy, triggerWord } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some advantages: