CloneSet132


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20530.952class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120113
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java
220146
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java
320179
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java
420212
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java
520245
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java
Next
Last
Clone Instance
1
Line Count
20
Source Line
113
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java

///////////////////////////////////////////////////////////////////////////
// From HighLowDataset
///////////////////////////////////////////////////////////////////////////
/**
 * Returns the high-value for the specified series and item.
 * <p>
 * Note: throws <code>ClassCastException</code> if the series if not from a 
 * {@link OHLCDataset}.
 *
 * @param series  the index of the series of interest (zero-based).
 * @param item  the index of the item of interest (zero-based).
 *
 * @return The high-value for the specified series and item.
 */
public Number getHigh(int series, int item) {
  return ((OHLCDataset) this.parent).getHigh(this.map[series], item);
}

/**
 * Returns the high-value (as a double primitive) for an item within a 
 * series.
 * 
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 * 
 * @return The high-value.
 */
public double getHighValue(int series, int item) {
  double result = Double.NaN;
  Number high = getHigh(series, item);
  if (high != null) {
    result = high.doubleValue();
  }
  return result;
}


Next
Previous
Clone Instance
2
Line Count
20
Source Line
146
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java

/**
 * Returns the low-value for the specified series and item.
 * <p>
 * Note: throws <code>ClassCastException</code> if the series if not from a 
 * {@link OHLCDataset}.
 *
 * @param series  the index of the series of interest (zero-based).
 * @param item  the index of the item of interest (zero-based).
 *
 * @return The low-value for the specified series and item.
 */
public Number getLow(int series, int item) {
  return ((OHLCDataset) this.parent).getLow(this.map[series], item);
}

/**
 * Returns the low-value (as a double primitive) for an item within a 
 * series.
 * 
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 * 
 * @return The low-value.
 */
public double getLowValue(int series, int item) {
  double result = Double.NaN;
  Number low = getLow(series, item);
  if (low != null) {
    result = low.doubleValue();
  }
  return result;
}


Next
Previous
Clone Instance
3
Line Count
20
Source Line
179
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java

/**
 * Returns the open-value for the specified series and item.
 * <p>
 * Note: throws <code>ClassCastException</code> if the series if not from a 
 * {@link OHLCDataset}.
 *
 * @param series  the index of the series of interest (zero-based).
 * @param item  the index of the item of interest (zero-based).
 *
 * @return The open-value for the specified series and item.
 */
public Number getOpen(int series, int item) {
  return ((OHLCDataset) this.parent).getOpen(this.map[series], item);
}

/**
 * Returns the open-value (as a double primitive) for an item within a 
 * series.
 * 
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 * 
 * @return The open-value.
 */
public double getOpenValue(int series, int item) {
  double result = Double.NaN;
  Number open = getOpen(series, item);
  if (open != null) {
    result = open.doubleValue();
  }
  return result;
}


Next
Previous
Clone Instance
4
Line Count
20
Source Line
212
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java

/**
 * Returns the close-value for the specified series and item.
 * <p>
 * Note: throws <code>ClassCastException</code> if the series if not from a 
 * {@link OHLCDataset}.
 *
 * @param series  the index of the series of interest (zero-based).
 * @param item  the index of the item of interest (zero-based).
 *
 * @return The close-value for the specified series and item.
 */
public Number getClose(int series, int item) {
  return ((OHLCDataset) this.parent).getClose(this.map[series], item);
}

/**
 * Returns the close-value (as a double primitive) for an item within a 
 * series.
 * 
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 * 
 * @return The close-value.
 */
public double getCloseValue(int series, int item) {
  double result = Double.NaN;
  Number close = getClose(series, item);
  if (close != null) {
    result = close.doubleValue();
  }
  return result;
}


First
Previous
Clone Instance
5
Line Count
20
Source Line
245
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/SubSeriesDataset.java

/**
 * Returns the volume.
 * <p>
 * Note: throws <code>ClassCastException</code> if the series if not from a 
 * {@link OHLCDataset}.
 *
 * @param series  the series (zero based index).
 * @param item  the item (zero based index).
 *
 * @return The volume.
 */
public Number getVolume(int series, int item) {
  return ((OHLCDataset) this.parent).getVolume(this.map[series], item);
}

/**
 * Returns the volume-value (as a double primitive) for an item within a 
 * series.
 * 
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 * 
 * @return The volume-value.
 */
public double getVolumeValue(int series, int item) {
  double result = Double.NaN;
  Number volume = getVolume(series, item);
  if (volume != null) {
    result = volume.doubleValue();
  }
  return result;
}


Clone AbstractionParameter Count: 3Parameter Bindings

///////////////////////////////////////////////////////////////////////////
// From HighLowDataset
///////////////////////////////////////////////////////////////////////////
/**
     * Returns the high-value for the specified series and item.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if not from a 
     * {@link OHLCDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The high-value for the specified series and item.
     */
/**
     * Returns the low-value for the specified series and item.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if not from a 
     * {@link OHLCDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The low-value for the specified series and item.
     */
/**
     * Returns the open-value for the specified series and item.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if not from a 
     * {@link OHLCDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The open-value for the specified series and item.
     */
/**
     * Returns the close-value for the specified series and item.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if not from a 
     * {@link OHLCDataset}.
     *
     * @param series  the index of the series of interest (zero-based).
     * @param item  the index of the item of interest (zero-based).
     *
     * @return The close-value for the specified series and item.
     */
/**
     * Returns the volume.
     * <p>
     * Note: throws <code>ClassCastException</code> if the series if not from a 
     * {@link OHLCDataset}.
     *
     * @param series  the series (zero based index).
     * @param item  the item (zero based index).
     *
     * @return The volume.
     */
public Number  [[#variable1aa72520]](int series, int item) {
  return ((OHLCDataset) this.parent). [[#variable1aa72520]](this.map[series], item);
}

/**
     * Returns the high-value (as a double primitive) for an item within a 
     * series.
     * 
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     * 
     * @return The high-value.
     */
/**
     * Returns the low-value (as a double primitive) for an item within a 
     * series.
     * 
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     * 
     * @return The low-value.
     */
/**
     * Returns the open-value (as a double primitive) for an item within a 
     * series.
     * 
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     * 
     * @return The open-value.
     */
/**
     * Returns the close-value (as a double primitive) for an item within a 
     * series.
     * 
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     * 
     * @return The close-value.
     */
/**
     * Returns the volume-value (as a double primitive) for an item within a 
     * series.
     * 
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     * 
     * @return The volume-value.
     */
public double  [[#variable1aa72c00]](int series, int item) {
  double result = Double.NaN;
  Number  [[#variable1aa78200]]= [[#variable1aa72520]](series, item);
  if ( [[#variable1aa78200]]!= null) {
    result = [[#variable1aa78200]].doubleValue();
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aa72520]]
getHigh 
12[[#1aa72520]]
getLow 
13[[#1aa72520]]
getOpen 
14[[#1aa72520]]
getClose 
15[[#1aa72520]]
getVolume 
21[[#1aa72c00]]
getHighValue 
22[[#1aa72c00]]
getLowValue 
23[[#1aa72c00]]
getOpenValue 
24[[#1aa72c00]]
getCloseValue 
25[[#1aa72c00]]
getVolumeValue 
31[[#1aa78200]]
high 
32[[#1aa78200]]
low 
33[[#1aa78200]]
open 
34[[#1aa78200]]
close 
35[[#1aa78200]]
volume