Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Primitive object types in Java (String, Float, …) are final. That blocks you from doing such tricks, as far as I understand.


The idea is to just wrap them in a unique type per intended use case, like AccountID, SessionID, etc. and inside the may contain a single field with String.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: