CloneSet95


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
64410.986class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16481
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/ohlc/OHLCSeriesCollection.java
26479
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XIntervalSeriesCollection.java
36481
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYIntervalSeriesCollection.java
46481
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/YIntervalSeriesCollection.java
Next
Last
Clone Instance
1
Line Count
64
Source Line
81
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/ohlc/OHLCSeriesCollection.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(OHLCSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this );
  fireDatasetChanged();
}

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

/**
 * Returns a series from the collection.
 *
 * @param series  the series index (zero-based).
 *
 * @return The series.
 * 
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public OHLCSeries getSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (OHLCSeries) this.data.get(series);
}

/**
 * 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 a series.
 * 
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     specified range.
 */
public Comparable getSeriesKey(int series) {
  // defer argument checking
  return getSeries(series).getKey();
}

/**
 * Returns the number of items in the specified series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The item count.
 * 
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public int getItemCount(int series) {
  // defer argument checking
  return getSeries(series).getItemCount();
}


Next
Previous
Clone Instance
2
Line Count
64
Source Line
79
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XIntervalSeriesCollection.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(XIntervalSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this );
  fireDatasetChanged();
}

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

/**
 * Returns a series from the collection.
 *
 * @param series  the series index (zero-based).
 *
 * @return The series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public XIntervalSeries getSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (XIntervalSeries) this.data.get(series);
}

/**
 * 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 a series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     specified range.
 */
public Comparable getSeriesKey(int series) {
  // defer argument checking
  return getSeries(series).getKey();
}

/**
 * Returns the number of items in the specified series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The item count.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public int getItemCount(int series) {
  // defer argument checking
  return getSeries(series).getItemCount();
}


Next
Previous
Clone Instance
3
Line Count
64
Source Line
81
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYIntervalSeriesCollection.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(XYIntervalSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this );
  fireDatasetChanged();
}

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

/**
 * Returns a series from the collection.
 *
 * @param series  the series index (zero-based).
 *
 * @return The series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public XYIntervalSeries getSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (XYIntervalSeries) this.data.get(series);
}

/**
 * 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 a series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     specified range.
 */
public Comparable getSeriesKey(int series) {
  // defer argument checking
  return getSeries(series).getKey();
}

/**
 * Returns the number of items in the specified series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The item count.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public int getItemCount(int series) {
  // defer argument checking
  return getSeries(series).getItemCount();
}


First
Previous
Clone Instance
4
Line Count
64
Source Line
81
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/YIntervalSeriesCollection.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(YIntervalSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this );
  fireDatasetChanged();
}

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

/**
 * Returns a series from the collection.
 *
 * @param series  the series index (zero-based).
 *
 * @return The series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public YIntervalSeries getSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (YIntervalSeries) this.data.get(series);
}

/**
 * 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 a series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     specified range.
 */
public Comparable getSeriesKey(int series) {
  // defer argument checking
  return getSeries(series).getKey();
}

/**
 * Returns the number of items in the specified series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The item count.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public int getItemCount(int series) {
  // defer argument checking
  return getSeries(series).getItemCount();
}


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 and sends a {@link DatasetChangeEvent} 
     * to all registered listeners.
     *
     * @param series  the series (<code>null</code> not permitted).
     */
public void addSeries( [[#variable1ab14b00]] series) {
  if (series == null) {
    throw new IllegalArgumentException("Null \'series\' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this );
  fireDatasetChanged();
}

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

/**
     * Returns a series from the collection.
     *
     * @param series  the series index (zero-based).
     *
     * @return The series.
     *
     * @throws IllegalArgumentException if <code>series</code> is not in the
     *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
     */
/**
     * Returns a series from the collection.
     *
     * @param series  the series index (zero-based).
     *
     * @return The series.
     * 
     * @throws IllegalArgumentException if <code>series</code> is not in the
     *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
     */
public [[#variable1ab14b00]] getSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return ( [[#variable1ab14b00]]) this.data.get(series);
}

/**
     * 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 a 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 a series.
     * 
     * @throws IllegalArgumentException if <code>series</code> is not in the
     *     specified range.
     */
public Comparable getSeriesKey(int series) {
  // defer argument checking
  return getSeries(series).getKey();
}

/**
     * Returns the number of items in the specified series.
     *
     * @param series  the series (zero-based index).
     *
     * @return The item count.
     *
     * @throws IllegalArgumentException if <code>series</code> is not in the
     *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
     */
/**
     * Returns the number of items in the specified series.
     *
     * @param series  the series (zero-based index).
     *
     * @return The item count.
     * 
     * @throws IllegalArgumentException if <code>series</code> is not in the
     *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
     */
public int getItemCount(int series) {
  // defer argument checking
  return getSeries(series).getItemCount();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ab14b00]]
OHLCSeries 
12[[#1ab14b00]]
XIntervalSeries 
13[[#1ab14b00]]
XYIntervalSeries 
14[[#1ab14b00]]
YIntervalSeries