Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Nexion12669yThere is a Boolean object in Java that's nullable as well. It extends off of the primitive. Use case would be if you were persisting a form that had a yes or no choice on it, you can use null on the Boolean object to indicate no choice yet. Anything tri-state. -
Nexion12669y@ziul yeah, but there are instances when using the default class is easier. Enums are great, but the Boolean class still has its use cases.
Related Rants

How do you even come up with shit like this?
I found such a treasure today in the production code.
Nuleable boolean
undefined
c#