Overriding “equals” method: how to figure out the type of the parameter?

前端 未结 9 1293
栀梦
栀梦 2021-02-05 07:47

I\'m trying to override equals method for a parameterized class.

@Override
public boolean equals(Object obj) {
    if (this == obj)
        return t         


        
9条回答
提交回复
热议问题