CloneSet234


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26220.984class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
126362
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/TaskSeriesCollection.java
226399
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/TaskSeriesCollection.java
Next
Last
Clone Instance
1
Line Count
26
Source Line
362
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/TaskSeriesCollection.java

/**
 * Returns the start value for a task.  This is a date/time value, measured
 * in milliseconds since 1-Jan-1970.
 *
 * @param rowKey  the series.
 * @param columnKey  the category.
 *
 * @return The start value (possibly <code>null</code>).
 */
public Number getStartValue(Comparable rowKey, Comparable columnKey) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    TimePeriod duration = task.getDuration();
    if (duration != null) {
      result = new Long(duration.getStart().getTime());
    }
  }
  return result;
}

/**
 * Returns the start value for a task.
 *
 * @param row  the row index (zero-based).
 * @param column  the column index (zero-based).
 *
 * @return The start value.
 */
public Number getStartValue(int row, int column) {
  Comparable rowKey = getRowKey(row);
  Comparable columnKey = getColumnKey(column);
  return getStartValue(rowKey, columnKey);
}


First
Previous
Clone Instance
2
Line Count
26
Source Line
399
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/TaskSeriesCollection.java

/**
 * Returns the end value for a task.  This is a date/time value, measured
 * in milliseconds since 1-Jan-1970.
 *
 * @param rowKey  the series.
 * @param columnKey  the category.
 *
 * @return The end value (possibly <code>null</code>).
 */
public Number getEndValue(Comparable rowKey, Comparable columnKey) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    TimePeriod duration = task.getDuration();
    if (duration != null) {
      result = new Long(duration.getEnd().getTime());
    }
  }
  return result;
}

/**
 * Returns the end value for a task.
 *
 * @param row  the row index (zero-based).
 * @param column  the column index (zero-based).
 *
 * @return The end value.
 */
public Number getEndValue(int row, int column) {
  Comparable rowKey = getRowKey(row);
  Comparable columnKey = getColumnKey(column);
  return getEndValue(rowKey, columnKey);
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Returns the start value for a task.  This is a date/time value, measured
     * in milliseconds since 1-Jan-1970.
     *
     * @param rowKey  the series.
     * @param columnKey  the category.
     *
     * @return The start value (possibly <code>null</code>).
     */
/**
     * Returns the end value for a task.  This is a date/time value, measured
     * in milliseconds since 1-Jan-1970.
     *
     * @param rowKey  the series.
     * @param columnKey  the category.
     *
     * @return The end value (possibly <code>null</code>).
     */
public Number  [[#variable1a88a520]](Comparable rowKey, Comparable columnKey) {
  Number result = null;
  int row = getRowIndex(rowKey);
  TaskSeries series = (TaskSeries) this.data.get(row);
  Task task = series.get(columnKey.toString());
  if (task != null) {
    TimePeriod duration = task.getDuration();
    if (duration != null) {
      result = new Long(duration. [[#variable1a88a640]]().getTime());
    }
  }
  return result;
}

/**
     * Returns the start value for a task.
     *
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     *
     * @return The start value.
     */
/**
     * Returns the end value for a task.
     *
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     *
     * @return The end value.
     */
public Number  [[#variable1a88a520]](int row, int column) {
  Comparable rowKey = getRowKey(row);
  Comparable columnKey = getColumnKey(column);
  return [[#variable1a88a520]](rowKey, columnKey);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a88a520]]
getStartValue 
12[[#1a88a520]]
getEndValue 
21[[#1a88a640]]
getStart 
22[[#1a88a640]]
getEnd