OBJ - The type of wrapped object in optional object.@FunctionalInterface public interface OptionalThingPredicate<OBJ>
entityOpt.filter(member -> { // called if value exists, not called if not present return member.getMemberId() % 2 == 0; }).ifPresent(...);
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
test(OBJ obj)
Test the object in the optional object.
|
boolean test(OBJ obj)
obj - The wrapped object in the optional object. (NotNull)Copyright © 2014–2015 The DBFlute Project. All rights reserved.