@FunctionalInterface public interface OptionalThingIfPresentAfter
opt.ifPresent(member -> { // called if value exists, or not called ... = member.getMemberName(); }).orElse(() -> { // *here: called if no value });
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
orElse(OptionalThingNoneProcessor noArgLambda)
Execute the process when the thing is none.
|
void orElse(OptionalThingNoneProcessor noArgLambda)
opt.ifPresent(member -> { // called if value exists, or not called ... = member.getMemberName(); }).orElse(() -> { // *here: called if no value });
noArgLambda - The callback to run the process when the thing is none. (NotNull)Copyright © 2014–2015 The DBFlute Project. All rights reserved.