"I can picture having to create an entire null object implementation just to satisfy this API"
Have done this quite a while ago (and for other reasons) for my util library...
Also for a canonical Null-String representation, which is of course not null. This can come handy, together with a global boolean isNull( Object o) method to at least avoid/circumvent some of the dreaded NPEs.
View all comments
Show parent comment
4
u/Mauer_Bluemchen Sep 22 '25 edited Sep 22 '25
"I can picture having to create an entire null object implementation just to satisfy this API"
Have done this quite a while ago (and for other reasons) for my util library...
Also for a canonical Null-String representation, which is of course not null. This can come handy, together with a global boolean isNull( Object o) method to at least avoid/circumvent some of the dreaded NPEs.