Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.956 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 302 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYSeriesCollection.java |
2 | 5 | 340 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/xy/XYSeriesCollection.java |
| |||||
/** * Returns the x-value for the specified series and item. * * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return The value. */ public Number getX(int series, int item) { XYSeries ts = (XYSeries) this.data.get(series); XYDataItem xyItem = ts.getDataItem(item); return xyItem.getX(); } |
| |||||
/** * Returns the y-value for the specified series and item. * * @param series the series (zero-based index). * @param index the index of the item of interest (zero-based). * * @return The value (possibly <code>null</code>). */ public Number getY(int series, int index) { XYSeries ts = (XYSeries) this.data.get(series); XYDataItem xyItem = ts.getDataItem(index); return xyItem.getY(); } |
| |||
/** * Returns the y-value for the specified series and item. * * @param series the series (zero-based index). * @param index the index of the item of interest (zero-based). * * @return The value (possibly <code>null</code>). */ /** * Returns the x-value for the specified series and item. * * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return The value. */ public Number [[#variable18de0c80]](int series, int [[#variable18de0cc0]]) { XYSeries ts = (XYSeries) this.data.get(series); XYDataItem xyItem = ts.getDataItem( [[#variable18de0cc0]]); return xyItem. [[#variable18de0c80]](); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18de0c80]] | getX |
1 | 2 | [[#18de0c80]] | getY |
2 | 1 | [[#18de0cc0]] | item |
2 | 2 | [[#18de0cc0]] | index |