CloneSet411


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33210.982class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
137182
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/TimePeriodValuesCollection.java
233346
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/TimeSeriesCollection.java
Next
Last
Clone Instance
1
Line Count
37
Source Line
182
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/TimePeriodValuesCollection.java

/**
 * Adds a series to the collection.  A 
 * {@link org.jfree.data.general.DatasetChangeEvent} is sent to all 
 * registered listeners.
 *
 * @param series  the time series.
 */
public void addSeries(TimePeriodValues series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this );
  fireDatasetChanged();
}

/**
 * Removes the specified series from the collection.
 *
 * @param series  the series to remove (<code>null</code> not permitted).
 */
public void removeSeries(TimePeriodValues series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.remove(series);
  series.removeChangeListener(this );
  fireDatasetChanged();
}

/**
 * Removes a series from the collection.
 *
 * @param index  the series index (zero-based).
 */
public void removeSeries(int index) {
  TimePeriodValues series = getSeries(index);
  if (series != null) {
    removeSeries(series);
  }
}


First
Previous
Clone Instance
2
Line Count
33
Source Line
346
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/TimeSeriesCollection.java

/**
 * Adds a series to the collection and sends a {@link DatasetChangeEvent} to
 * all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 */
public void addSeries(TimeSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this );
  fireDatasetChanged();
}

/**
 * Removes the specified series from the collection and sends a 
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 */
public void removeSeries(TimeSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.remove(series);
  series.removeChangeListener(this );
  fireDatasetChanged();
}

/**
 * Removes a series from the collection.
 *
 * @param index  the series index (zero-based).
 */
public void removeSeries(int index) {
  TimeSeries series = getSeries(index);
  if (series != null) {
    removeSeries(series);
  }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Adds a series to the collection and sends a {@link DatasetChangeEvent} to
     * all registered listeners.
     *
     * @param series  the series (<code>null</code> not permitted).
     */
/**
     * Adds a series to the collection.  A 
     * {@link org.jfree.data.general.DatasetChangeEvent} is sent to all 
     * registered listeners.
     *
     * @param series  the time series.
     */
public void addSeries( [[#variable1a99a280]] series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this );
  fireDatasetChanged();
}

/**
     * Removes the specified series from the collection and sends a 
     * {@link DatasetChangeEvent} to all registered listeners.
     *
     * @param series  the series (<code>null</code> not permitted).
     */
/**
     * Removes the specified series from the collection.
     *
     * @param series  the series to remove (<code>null</code> not permitted).
     */
public void removeSeries( [[#variable1a99a280]] series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.remove(series);
  series.removeChangeListener(this );
  fireDatasetChanged();
}

/**
     * Removes a series from the collection.
     *
     * @param index  the series index (zero-based).
     */
public void removeSeries(int index) {
   [[#variable1a99a280]] series = getSeries(index);
  if (series != null) {
    removeSeries(series);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a99a280]]
TimePeriodValues 
12[[#1a99a280]]
TimeSeries