cqengine icon indicating copy to clipboard operation
cqengine copied to clipboard

Support for java.util.Optional

Open buko opened this issue 3 years ago • 0 comments

Surprised that cqengine doesn't support java.util.Optional. Is the engine trying to maintain compatibility with pre-Java 1.8 code?

Would be great to see a Optional<T>:ResultSet.unique() IMO. Most Java code these days doesn't use Exceptions to indicate a missing value, java.util.Optional fills that role pretty well. As things are we spend a lot of time translating uniqueResult() into an Optional.

buko avatar Jun 06 '22 10:06 buko