OBJ - The type of wrapped object in optional thing.@FunctionalInterface public interface OptionalThingConsumer<OBJ>
opt.ifPresent(member -> { // called if value exists, not called if not present ... = member.getMemberName(); }); opt.required(member -> { // called if value exists, or exception if not present ... = member.getMemberName(); });
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
accept(OBJ obj)
Accept the value in the optional object.
|
void accept(OBJ obj)
when caller is ifPresent(): called if value exists, not called if not present when caller is required(): called if value exists, or exception if not present
obj - The wrapped object in the optional object. (NotNull)Copyright © 2014–2015 The DBFlute Project. All rights reserved.