4 ms·
I said not ideal because of null. I wish there was a better way. Null is way too overloaded in Java.
by gauravphoenix 7y ago
I said not ideal because of null. I wish there was a better way. Null is way too overloaded in Java.
- AnimalMuppet 7y agoThen don't use null. Use { false, true, 2 } or { false, true, SomeNewEnumerationLabel }.
- gauravphoenix 7y agoyeah, I just wish there was a first class citizen support to represent this. I think Optional<Boolean> should suffice.