public class PluginDefaultGroovyMethods extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
asBoolean(Optional<?> optional)
Coerce an Optional instance to a boolean value.
|
public static boolean asBoolean(Optional<?> optional)
optional
- the Optionaltrue
if a value is present, otherwise false