equals(Object obj) Indicates whether some other object is "equal to" this one.
The delegate is used if the class of the parameter and the
current class are equal.
Indicates whether some other object is "equal to" this one.
The delegate is used if the class of the parameter and the
current class are equal. In other cases the method will return
false. The exact class is here used, if inheritance is needed,
this method must be overwritten.
See Also:java.lang.Object.equals(java.lang.Object)
This method is a default implementation for the invoke method
given in Invocationhandler. Any call to an method with an
declaring class that is not Object is redirected to invokeCustom.
Methods like tostring, equals and hashcode are called on the class
itself instead of the delegate. It is better to overwrite the
invokeCustom method where the Object related methods are filtered out.
See Also:ConversionHandler.invokeCustom(Object,Method,Object[]) See Also:InvocationHandler.invoke(java.lang.Objectjava.lang.reflect.Methodjava.lang.Object[]) Parameters: proxy - the proxy Parameters: method - the method Parameters: args - the arguments the result of the invocation by method or delegate throws: Throwable - any exception caused by the delegate or the method