这是一个equals()的方法;有点看不懂。请各位指教:
public boolean equals(Object o ){ //?????
if (o==null) return false;
if (this==o) return true;
if (this.getClass()!=o.getClass())return false; //?????
Product other=(Product)o; //?????
if (this.id==other.id){
return true;
}else{
return false;
}
}