CloneSet110


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21530.956class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121237
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java
221271
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java
321305
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java
421339
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java
521373
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java
Next
Last
Clone Instance
1
Line Count
21
Source Line
237
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java

///////////////////////////////////////////////////////////////////////////
// From HighLowDataset
///////////////////////////////////////////////////////////////////////////
/**
 * Returns the high-value for the specified series and item.
 * <P>
 * Note:  throws <code>ClassCastException</code> if the series is 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) {
  DatasetInfo di = getDatasetInfo(series);
  return ((OHLCDataset) di.data).getHigh(di.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
21
Source Line
271
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java

/**
 * Returns the low-value for the specified series and item.
 * <P>
 * Note:  throws <code>ClassCastException</code> if the series is 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) {
  DatasetInfo di = getDatasetInfo(series);
  return ((OHLCDataset) di.data).getLow(di.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
21
Source Line
305
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java

/**
 * Returns the open-value for the specified series and item.
 * <P>
 * Note:  throws <code>ClassCastException</code> if the series is 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) {
  DatasetInfo di = getDatasetInfo(series);
  return ((OHLCDataset) di.data).getOpen(di.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
21
Source Line
339
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java

/**
 * Returns the close-value for the specified series and item.
 * <P>
 * Note:  throws <code>ClassCastException</code> if the series is 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) {
  DatasetInfo di = getDatasetInfo(series);
  return ((OHLCDataset) di.data).getClose(di.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
21
Source Line
373
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/general/CombinedDataset.java

/**
 * Returns the volume value for the specified series and item.
 * <P>
 * Note:  throws <code>ClassCastException</code> if the series is 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 volume value for the specified series and item.
 */
public Number getVolume(int series, int item) {
  DatasetInfo di = getDatasetInfo(series);
  return ((OHLCDataset) di.data).getVolume(di.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

/**
     * Returns the volume value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is 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 volume 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 is 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 open-value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is 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 low-value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is 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.
     */
///////////////////////////////////////////////////////////////////////////
// From HighLowDataset
///////////////////////////////////////////////////////////////////////////
/**
     * Returns the high-value for the specified series and item.
     * <P>
     * Note:  throws <code>ClassCastException</code> if the series is 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  [[#variable1aa0dfe0]](int series, int item) {
  DatasetInfo di = getDatasetInfo(series);
  return ((OHLCDataset) di.data). [[#variable1aa0dfe0]](di.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.
     */
/**
     * 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 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 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 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  [[#variable1aa0df80]](int series, int item) {
  double result = Double.NaN;
  Number  [[#variable1aa0dee0]]= [[#variable1aa0dfe0]](series, item);
  if ( [[#variable1aa0dee0]]!= null) {
    result = [[#variable1aa0dee0]].doubleValue();
  }
  return result;
}
 

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