CloneSet275


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
36310.993class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13678
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/DefaultIntervalXYDataset.java
23674
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/DefaultXYDataset.java
33675
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/DefaultXYZDataset.java
Next
Last
Clone Instance
1
Line Count
36
Source Line
78
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/DefaultIntervalXYDataset.java

/**
 * Storage for the series in the dataset.  We use a list because the
 * order of the series is significant.  This list must be kept in sync
 * with the seriesKeys list.
 */
private List seriesList;

/**
 * Creates a new <code>DefaultIntervalXYDataset</code> instance, initially
 * containing no data.
 */
public DefaultIntervalXYDataset() {
  this.seriesKeys = new java.util.ArrayList();
  this.seriesList = new java.util.ArrayList();
}

/**
 * Returns the number of series in the dataset.
 *
 * @return The series count.
 */
public int getSeriesCount() {
  return this.seriesList.size();
}

/**
 * Returns the key for a series.
 *
 * @param series  the series index (in the range <code>0</code> to
 *     <code>getSeriesCount() - 1</code>).
 *
 * @return The key for the series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     specified range.
 */
public Comparable getSeriesKey(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (Comparable) this.seriesKeys.get(series);
}


Next
Previous
Clone Instance
2
Line Count
36
Source Line
74
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/DefaultXYDataset.java

/** 
 * Storage for the series in the dataset.  We use a list because the
 * order of the series is significant.  This list must be kept in sync 
 * with the seriesKeys list.
 */
private List seriesList;

/**
 * Creates a new <code>DefaultXYDataset</code> instance, initially 
 * containing no data.
 */
public DefaultXYDataset() {
  this.seriesKeys = new java.util.ArrayList();
  this.seriesList = new java.util.ArrayList();
}

/**
 * Returns the number of series in the dataset.
 *
 * @return The series count.
 */
public int getSeriesCount() {
  return this.seriesList.size();
}

/**
 * Returns the key for a series.  
 *
 * @param series  the series index (in the range <code>0</code> to 
 *     <code>getSeriesCount() - 1</code>).
 *
 * @return The key for the series.
 * 
 * @throws IllegalArgumentException if <code>series</code> is not in the 
 *     specified range.
 */
public Comparable getSeriesKey(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (Comparable) this.seriesKeys.get(series);
}


First
Previous
Clone Instance
3
Line Count
36
Source Line
75
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/DefaultXYZDataset.java

/**
 * Storage for the series in the dataset.  We use a list because the
 * order of the series is significant.  This list must be kept in sync
 * with the seriesKeys list.
 */
private List seriesList;

/**
 * Creates a new <code>DefaultXYZDataset</code> instance, initially
 * containing no data.
 */
public DefaultXYZDataset() {
  this.seriesKeys = new java.util.ArrayList();
  this.seriesList = new java.util.ArrayList();
}

/**
 * Returns the number of series in the dataset.
 *
 * @return The series count.
 */
public int getSeriesCount() {
  return this.seriesList.size();
}

/**
 * Returns the key for a series.
 *
 * @param series  the series index (in the range <code>0</code> to
 *     <code>getSeriesCount() - 1</code>).
 *
 * @return The key for the series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     specified range.
 */
public Comparable getSeriesKey(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (Comparable) this.seriesKeys.get(series);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Storage for the series in the dataset.  We use a list because the
     * order of the series is significant.  This list must be kept in sync
     * with the seriesKeys list.
     */
/** 
     * Storage for the series in the dataset.  We use a list because the
     * order of the series is significant.  This list must be kept in sync 
     * with the seriesKeys list.
     */
private List seriesList;

/**
     * Creates a new <code>DefaultIntervalXYDataset</code> instance, initially
     * containing no data.
     */
/**
     * Creates a new <code>DefaultXYZDataset</code> instance, initially
     * containing no data.
     */
/**
     * Creates a new <code>DefaultXYDataset</code> instance, initially 
     * containing no data.
     */
public [[#variable1a8c4f20]]() {
  this.seriesKeys = new java.util.ArrayList();
  this.seriesList = new java.util.ArrayList();
}

/**
     * Returns the number of series in the dataset.
     *
     * @return The series count.
     */
public int getSeriesCount() {
  return this.seriesList.size();
}

/**
     * Returns the key for a series.
     *
     * @param series  the series index (in the range <code>0</code> to
     *     <code>getSeriesCount() - 1</code>).
     *
     * @return The key for the series.
     *
     * @throws IllegalArgumentException if <code>series</code> is not in the
     *     specified range.
     */
/**
     * Returns the key for a series.  
     *
     * @param series  the series index (in the range <code>0</code> to 
     *     <code>getSeriesCount() - 1</code>).
     *
     * @return The key for the series.
     * 
     * @throws IllegalArgumentException if <code>series</code> is not in the 
     *     specified range.
     */
public Comparable getSeriesKey(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (Comparable) this.seriesKeys.get(series);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a8c4f20]]
DefaultIntervalXYDataset 
12[[#1a8c4f20]]
DefaultXYDataset 
13[[#1a8c4f20]]
DefaultXYZDataset