compiler: java: delegate equals method to type