public class GroovyUtils
extends java.lang.Object
Support utilities for LensKit’s use of Groovy.
Modifier and Type | Method and Description |
---|---|
static <T> T |
buildObject(org.apache.commons.lang3.builder.Builder<T> builder,
java.util.Map<java.lang.String,java.lang.Object> args)
Build an object using named arguments.
|
static java.lang.Object |
callWithDelegate(groovy.lang.Closure<?> block,
java.lang.Object delegate)
Call a configuration block with a specified delegate.
|
public static java.lang.Object callWithDelegate(groovy.lang.Closure<?> block, java.lang.Object delegate)
Call a configuration block with a specified delegate.
block
- The block to invoke.delegate
- The delegate.public static <T> T buildObject(org.apache.commons.lang3.builder.Builder<T> builder, java.util.Map<java.lang.String,java.lang.Object> args)
Build an object using named arguments.
builder
- The builder to use.args
- The arguments.T
- The type of object to be built.