public class Optional extends Object
Modifier and Type | Method and Description |
---|---|
Object |
get() |
void |
ifPresent(LambdaExpression lambda) |
boolean |
isPresent() |
Object |
orElse(Object other) |
Object |
orElseGet(LambdaExpression other) |
public boolean isPresent()
public void ifPresent(LambdaExpression lambda)
public Object get()
public Object orElseGet(LambdaExpression other)
Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.