In Java there is no operator overriding like i C++ so I can\'t figure out how to implement a boxing/unboxing for my own class.
For example it\'s possibile to use box
There is no way to implement auto-boxing and auto-unboxing for a user-defined class.
You can of course provide named methods to do the job. However, you would have to call them explicitly every time you need to box or unbox something.