OBJ - The type of wrapped object in optional thing.RESULT - The type of result of mapping.@FunctionalInterface public interface OptionalThingFunction<OBJ,RESULT>
entityOpt.map(member -> { // called if value exists, not called if not present return new MemberWebBean(member); }).ifPresent(...);
| 修飾子とタイプ | メソッドと説明 |
|---|---|
RESULT |
apply(OBJ obj)
Apply the object in the optional thing.
|
Copyright © 2014–2015 The DBFlute Project. All rights reserved.