git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@557612 13f79535-47bb-0310-9956-ffa450edef68tags/fop-0_95beta
return Color.black; | return Color.black; | ||||
} | } | ||||
/** {@inheritDoc} */ | |||||
public int hashCode() { | |||||
return number.hashCode(); | |||||
} | |||||
/** {@inheritDoc} */ | |||||
public boolean equals(Object o) { | |||||
if (o != null && o instanceof NumberProperty) { | |||||
NumberProperty np = (NumberProperty) o; | |||||
return (np.number == this.number | |||||
|| (this.number != null | |||||
&& this.number.equals(np.number))); | |||||
} else { | |||||
return false; | |||||
} | |||||
} | |||||
} | } |