CloneSet 338

# CloneSet338

Previous CloneSet | Next CloneSet | Back to Main Report

Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length]
--- | --- | --- | --- | ---
27 | 2 | 1 | 0.979 | class_body_declarations[2]

Clone Abstraction | Parameter Bindings

Clone Instance (Click to see clone) | Line Count | Source Line | Source File
--- | --- | --- | ---

1

27

353

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/SlidingGanttCategoryDataset.java

2

27

422

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/SlidingGanttCategoryDataset.java

Next
Last

Clone Instance
1

Line Count
27

Source Line
353

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/SlidingGanttCategoryDataset.java

    /**
     * Returns the end value of a sub-interval for a given item.
     *
     * @param rowKey  the row key.
     * @param columnKey  the column key.
     * @param subinterval  the sub-interval.
     *
     * @return The end value (possibly <code>null</code>).
     *
     * @see #getStartValue(Comparable, Comparable, int)
     */
    public Number getEndValue(Comparable rowKey, Comparable columnKey, int subinterval) {
      int r = getRowIndex(rowKey);
      int c = getColumnIndex(columnKey);
      if (c != -1) {
        return this.underlying.getEndValue(r, c + this.firstCategoryIndex, subinterval);
      }
      else {
        throw new UnknownKeyException("Unknown columnKey: " + columnKey);
      }
    }

    /**
     * Returns the end value of a sub-interval for a given item.
     *
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     * @param subinterval  the sub-interval.
     *
     * @return The end value (possibly <code>null</code>).
     *
     * @see #getStartValue(int, int, int)
     */
    public Number getEndValue(int row, int column, int subinterval) {
      return this.underlying.getEndValue(row, column + this.firstCategoryIndex, subinterval);
    }

First
Previous

Clone Instance
2

Line Count
27

Source Line
422

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/gantt/SlidingGanttCategoryDataset.java

    /**
     * Returns the start value of a sub-interval for a given item.
     *
     * @param rowKey  the row key.
     * @param columnKey  the column key.
     * @param subinterval  the sub-interval.
     *
     * @return The start value (possibly <code>null</code>).
     *
     * @see #getEndValue(Comparable, Comparable, int)
     */
    public Number getStartValue(Comparable rowKey, Comparable columnKey, int subinterval) {
      int r = getRowIndex(rowKey);
      int c = getColumnIndex(columnKey);
      if (c != -1) {
        return this.underlying.getStartValue(r, c + this.firstCategoryIndex, subinterval);
      }
      else {
        throw new UnknownKeyException("Unknown columnKey: " + columnKey);
      }
    }

    /**
     * Returns the start value of a sub-interval for a given item.
     *
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     * @param subinterval  the sub-interval index (zero-based).
     *
     * @return The start value (possibly <code>null</code>).
     *
     * @see #getEndValue(int, int, int)
     */
    public Number getStartValue(int row, int column, int subinterval) {
      return this.underlying.getStartValue(row, column + this.firstCategoryIndex, subinterval);
    }

Clone Abstraction | Parameter Count: 1 | Parameter Bindings

    /**
         * Returns the start value of a sub-interval for a given item.
         *
         * @param rowKey  the row key.
         * @param columnKey  the column key.
         * @param subinterval  the sub-interval.
         *
         * @return The start value (possibly <code>null</code>).
         *
         * @see #getEndValue(Comparable, Comparable, int)
         */
    /**
         * Returns the end value of a sub-interval for a given item.
         *
         * @param rowKey  the row key.
         * @param columnKey  the column key.
         * @param subinterval  the sub-interval.
         *
         * @return The end value (possibly <code>null</code>).
         *
         * @see #getStartValue(Comparable, Comparable, int)
         */
    public Number  [[#variable1a91f720]](Comparable rowKey, Comparable columnKey, int subinterval) {
      int r = getRowIndex(rowKey);
      int c = getColumnIndex(columnKey);
      if (c != -1) {
        return this.underlying. [[#variable1a91f720]](r, c + this.firstCategoryIndex, subinterval);
      }
      else {
        throw new UnknownKeyException("Unknown columnKey: " + columnKey);
      }
    }

    /**
         * Returns the start value of a sub-interval for a given item.
         *
         * @param row  the row index (zero-based).
         * @param column  the column index (zero-based).
         * @param subinterval  the sub-interval index (zero-based).
         *
         * @return The start value (possibly <code>null</code>).
         *
         * @see #getEndValue(int, int, int)
         */
    /**
         * Returns the end value of a sub-interval for a given item.
         *
         * @param row  the row index (zero-based).
         * @param column  the column index (zero-based).
         * @param subinterval  the sub-interval.
         *
         * @return The end value (possibly <code>null</code>).
         *
         * @see #getStartValue(int, int, int)
         */
    public Number  [[#variable1a91f720]](int row, int column, int subinterval) {
      return this.underlying. [[#variable1a91f720]](row, column + this.firstCategoryIndex, subinterval);
    }

CloneAbstraction

Parameter Bindings
Parameter Index | Clone Instance | Parameter Name | Value
--- | --- | --- | ---

1

1

`[[#1a91f720]]`

    getEndValue

1

2

`[[#1a91f720]]`

    getStartValue