Defines new Groovy methods which appear on normal JDK 8 classes inside the Groovy environment.
static boolean
asBoolean(Optional<?> optional)
class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
Coerce an Optional instance to a boolean value.
optional
true
false
Copyright © 2003-2017 The Apache Software Foundation. All rights reserved.