CloneSet779


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127140
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/ComparableObjectSeries.java
227204
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYSeries.java
Next
Last
Clone Instance
1
Line Count
27
Source Line
140
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/ComparableObjectSeries.java

/**
 * Returns the maximum number of items that will be retained in the series.
 * The default value is <code>Integer.MAX_VALUE</code>.
 *
 * @return The maximum item count.
 * @see #setMaximumItemCount(int)
 */
public int getMaximumItemCount() {
  return this.maximumItemCount;
}

/**
 * Sets the maximum number of items that will be retained in the series.  
 * If you add a new item to the series such that the number of items will 
 * exceed the maximum item count, then the first element in the series is 
 * automatically removed, ensuring that the maximum item count is not 
 * exceeded.
 * <p>
 * Typically this value is set before the series is populated with data,
 * but if it is applied later, it may cause some items to be removed from
 * the series (in which case a {@link SeriesChangeEvent} will be sent to
 * all registered listeners.
 *
 * @param maximum  the maximum number of items for the series.
 */
public void setMaximumItemCount(int maximum) {
  this.maximumItemCount = maximum;
  boolean dataRemoved = false;
  while (this.data.size() > maximum) {
    this.data.remove(0);
    dataRemoved = true;
  }
  if (dataRemoved) {
    fireSeriesChanged();
  }
}


First
Previous
Clone Instance
2
Line Count
27
Source Line
204
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYSeries.java

/**
 * Returns the maximum number of items that will be retained in the series.
 * The default value is <code>Integer.MAX_VALUE</code>.
 *
 * @return The maximum item count.
 * @see #setMaximumItemCount(int)
 */
public int getMaximumItemCount() {
  return this.maximumItemCount;
}

/**
 * Sets the maximum number of items that will be retained in the series.
 * If you add a new item to the series such that the number of items will
 * exceed the maximum item count, then the first element in the series is
 * automatically removed, ensuring that the maximum item count is not
 * exceeded.
 * <p>
 * Typically this value is set before the series is populated with data,
 * but if it is applied later, it may cause some items to be removed from
 * the series (in which case a {@link SeriesChangeEvent} will be sent to
 * all registered listeners.
 *
 * @param maximum  the maximum number of items for the series.
 */
public void setMaximumItemCount(int maximum) {
  this.maximumItemCount = maximum;
  boolean dataRemoved = false;
  while (this.data.size() > maximum) {
    this.data.remove(0);
    dataRemoved = true;
  }
  if (dataRemoved) {
    fireSeriesChanged();
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Returns the maximum number of items that will be retained in the series.
     * The default value is <code>Integer.MAX_VALUE</code>.
     *
     * @return The maximum item count.
     * @see #setMaximumItemCount(int)
     */
public int getMaximumItemCount() {
  return this.maximumItemCount;
}

/**
     * Sets the maximum number of items that will be retained in the series.  
     * If you add a new item to the series such that the number of items will 
     * exceed the maximum item count, then the first element in the series is 
     * automatically removed, ensuring that the maximum item count is not 
     * exceeded.
     * <p>
     * Typically this value is set before the series is populated with data,
     * but if it is applied later, it may cause some items to be removed from
     * the series (in which case a {@link SeriesChangeEvent} will be sent to
     * all registered listeners.
     *
     * @param maximum  the maximum number of items for the series.
     */
/**
     * Sets the maximum number of items that will be retained in the series.
     * If you add a new item to the series such that the number of items will
     * exceed the maximum item count, then the first element in the series is
     * automatically removed, ensuring that the maximum item count is not
     * exceeded.
     * <p>
     * Typically this value is set before the series is populated with data,
     * but if it is applied later, it may cause some items to be removed from
     * the series (in which case a {@link SeriesChangeEvent} will be sent to
     * all registered listeners.
     *
     * @param maximum  the maximum number of items for the series.
     */
public void setMaximumItemCount(int maximum) {
  this.maximumItemCount = maximum;
  boolean dataRemoved = false;
  while (this.data.size() > maximum) {
    this.data.remove(0);
    dataRemoved = true;
  }
  if (dataRemoved) {
    fireSeriesChanged();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None