|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.linkedin.groovy.util.lang.GroovyLangUtils
org.linkedin.glu.groovy.utils.GluGroovyLangUtils
class GluGroovyLangUtils extends GroovyLangUtils
Method Summary | |
---|---|
static T
|
copyProperties(java.lang.Object source, T target)
Copy the properties from source to target and copy only the properties that exist in target |
static boolean
|
getOptionalBoolean(java.lang.Object value, boolean defaultValue)
|
static long
|
getOptionalLong(java.lang.Object config, java.lang.String name, long defaultValue)
@return the long found in the config or the default value |
static java.lang.Object
|
noException(java.util.Collection closures)
Call all the closures and make sure none of it throws an exception. |
static java.lang.Object
|
onlyOneException(java.util.Collection closures)
Throw only 1 exception (at most) even if there are multiple. |
Method Detail |
---|
static T copyProperties(java.lang.Object source, T target)
target
static boolean getOptionalBoolean(java.lang.Object value, boolean defaultValue)
static long getOptionalLong(java.lang.Object config, java.lang.String name, long defaultValue)
static java.lang.Object noException(java.util.Collection closures)
static java.lang.Object onlyOneException(java.util.Collection closures)
Groovy Documentation