Enforce "equals" in an interface
- by Fredrik
I have an interface and I want everyone who implements this interface to implements an overrridden "equals" method.
Is there a way to make sure that happens?
The way I guess this will happen is that the class that implements my interface will automatically get the equals from Object therefore making the interface happy.