logoalt Hacker News

shagietoday at 5:29 PM1 replyview on HN

For Java developers... you can use Optional<Boolean> to store the elusive four possible booleans.


Replies

nitnelavetoday at 6:45 PM

5, no? Null, Optional::empty, Optional(null), Optional(true), Optional(false)

show 1 reply