3 ms·
Primitive object types in Java (String, Float, …) are final. That blocks you from doing such tricks, as far as I understand.
by lolive 1y ago
Primitive object types in Java (String, Float, …) are final.
That blocks you from doing such tricks, as far as I understand.
- viktorcode 1y agoThe 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.