I'm writing a Java class that extends AbstractList
because it has a lot of methods I want to inherit.
It has two methods I don't want to inherit: equals
and hashCode
. I would like to just call the default Object
versions of those.
The syntax for calling an inherited method is e.g. super.hashCode()
but that would just get the AbstractList
version. What's the syntax for skipping over that and calling the grandfather version? Object.hashCode()
doesn't work.