public boolean equals(Object otherObject)
{
if (this==otherObject)return true;
if (otherObject==null)return false;
if (getClass()1=otherObject.getClass())return false;
Item other=(Item) otherObject;
return description.equals(other.description)&&parNumber==other.partNumber;
}
请问这段代码有什么作用