simplifying equals and hashcode of DelegatingMethod