CloneSet265


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
42220.974class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
141306
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/category/SlidingCategoryDataset.java
242566
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/SlidingGanttCategoryDataset.java
Next
Last
Clone Instance
1
Line Count
41
Source Line
306
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/category/SlidingCategoryDataset.java

/**
 * 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 SlidingCategoryDataset)) {
    return false;
  }
  SlidingCategoryDataset that = (SlidingCategoryDataset) 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 {
  SlidingCategoryDataset clone = (SlidingCategoryDataset) super.clone();
  if (this.underlying instanceof PublicCloneable) {
    PublicCloneable pc = (PublicCloneable) this.underlying;
    clone.underlying = (CategoryDataset) pc.clone();
  }
  return clone;
}


First
Previous
Clone Instance
2
Line Count
42
Source Line
566
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/SlidingGanttCategoryDataset.java

/**
 * 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 SlidingGanttCategoryDataset)) {
    return false;
  }
  SlidingGanttCategoryDataset that = (SlidingGanttCategoryDataset) 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 {
  SlidingGanttCategoryDataset clone = (SlidingGanttCategoryDataset) super.clone();
  if (this.underlying instanceof PublicCloneable) {
    PublicCloneable pc = (PublicCloneable) this.underlying;
    clone.underlying = (GanttCategoryDataset) pc.clone();
  }
  return clone;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * 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;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a883a80]]
SlidingCategoryDataset 
12[[#1a883a80]]
SlidingGanttCategoryDataset 
21[[#1a882de0]]
CategoryDataset 
22[[#1a882de0]]
GanttCategoryDataset