/**
* Tests this <code>SlidingCategoryDataset</code> for equality with an
* arbitrary object.
*
* @param obj the object (<code>null</code> permitted).
*
* @return A boolean.
*/
public boolean equals(Object obj) {
if (obj == this ) {
return true;
}
if ( !(obj instanceof [[#variable1a883a80]])) {
return false;
}
[[#variable1a883a80]] that = ( [[#variable1a883a80]]) obj;
if (this.firstCategoryIndex != that.firstCategoryIndex) {
return false;
}
if (this.maximumCategoryCount != that.maximumCategoryCount) {
return false;
}
if ( !this.underlying.equals(that.underlying)) {
return false;
}
return true;
}
/**
* Returns an independent copy of the dataset. Note that:
* <ul>
* <li>the underlying dataset is only cloned if it implements the
* {@link PublicCloneable} interface;</li>
* <li>the listeners registered with this dataset are not carried over to
* the cloned dataset.</li>
* </ul>
*
* @return An independent copy of the dataset.
*
* @throws CloneNotSupportedException if the dataset cannot be cloned for
* any reason.
*/
public Object clone() throws CloneNotSupportedException {
[[#variable1a883a80]] clone = ( [[#variable1a883a80]]) super.clone();
if (this.underlying instanceof PublicCloneable) {
PublicCloneable pc = (PublicCloneable) this.underlying;
clone.underlying = ( [[#variable1a882de0]]) pc.clone();
}
return clone;
}
|