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 boxing and unboxing with Integer or Float when we do somethings like this:
int myVar = new Integer(25);
But how can I implement something similar in my class MyObject? (in the case I want to wrap a primitive type myself). Is there any code example?