CloneSet 186

# CloneSet186

Previous CloneSet | Next CloneSet | Back to Main Report

Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length]
--- | --- | --- | --- | ---
29 | 7 | 0 | 1.000 | class_body_declarations[3]

Clone Abstraction | Parameter Bindings

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

1

29

225

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Day.java

2

29

217

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Hour.java

3

29

223

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Minute.java

4

29

192

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Month.java

5

29

209

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Quarter.java

6

29

261

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Week.java

7

29

151

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Year.java

Next
Last

Clone Instance
1

Line Count
29

Source Line
225

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Day.java

    /**
     * Returns the first millisecond of the day.  This will be determined
     * relative to the time zone specified in the constructor, or in the
     * calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The first millisecond of the day.
     *
     * @see #getLastMillisecond()
     */
    public long getFirstMillisecond() {
      return this.firstMillisecond;
    }

    /**
     * Returns the last millisecond of the day.  This will be
     * determined relative to the time zone specified in the constructor, or
     * in the calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The last millisecond of the day.
     *
     * @see #getFirstMillisecond()
     */
    public long getLastMillisecond() {
      return this.lastMillisecond;
    }

    /**
     * Recalculates the start date/time and end date/time for this time period
     * relative to the supplied calendar (which incorporates a time zone).
     *
     * @param calendar  the calendar (<code>null</code> not permitted).
     *
     * @since 1.0.3
     */
    public void peg(Calendar calendar) {
      this.firstMillisecond = getFirstMillisecond(calendar);
      this.lastMillisecond = getLastMillisecond(calendar);
    }

Next
Previous

Clone Instance
2

Line Count
29

Source Line
217

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Hour.java

    /**
     * Returns the first millisecond of the hour.  This will be determined
     * relative to the time zone specified in the constructor, or in the
     * calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The first millisecond of the hour.
     *
     * @see #getLastMillisecond()
     */
    public long getFirstMillisecond() {
      return this.firstMillisecond;
    }

    /**
     * Returns the last millisecond of the hour.  This will be
     * determined relative to the time zone specified in the constructor, or
     * in the calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The last millisecond of the hour.
     *
     * @see #getFirstMillisecond()
     */
    public long getLastMillisecond() {
      return this.lastMillisecond;
    }

    /**
     * Recalculates the start date/time and end date/time for this time period
     * relative to the supplied calendar (which incorporates a time zone).
     *
     * @param calendar  the calendar (<code>null</code> not permitted).
     *
     * @since 1.0.3
     */
    public void peg(Calendar calendar) {
      this.firstMillisecond = getFirstMillisecond(calendar);
      this.lastMillisecond = getLastMillisecond(calendar);
    }

Next
Previous

Clone Instance
3

Line Count
29

Source Line
223

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Minute.java

    /**
     * Returns the first millisecond of the minute.  This will be determined
     * relative to the time zone specified in the constructor, or in the
     * calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The first millisecond of the minute.
     *
     * @see #getLastMillisecond()
     */
    public long getFirstMillisecond() {
      return this.firstMillisecond;
    }

    /**
     * Returns the last millisecond of the minute.  This will be
     * determined relative to the time zone specified in the constructor, or
     * in the calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The last millisecond of the minute.
     *
     * @see #getFirstMillisecond()
     */
    public long getLastMillisecond() {
      return this.lastMillisecond;
    }

    /**
     * Recalculates the start date/time and end date/time for this time period
     * relative to the supplied calendar (which incorporates a time zone).
     *
     * @param calendar  the calendar (<code>null</code> not permitted).
     *
     * @since 1.0.3
     */
    public void peg(Calendar calendar) {
      this.firstMillisecond = getFirstMillisecond(calendar);
      this.lastMillisecond = getLastMillisecond(calendar);
    }

Next
Previous

Clone Instance
4

Line Count
29

Source Line
192

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Month.java

    /**
     * Returns the first millisecond of the month.  This will be determined
     * relative to the time zone specified in the constructor, or in the
     * calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The first millisecond of the month.
     *
     * @see #getLastMillisecond()
     */
    public long getFirstMillisecond() {
      return this.firstMillisecond;
    }

    /**
     * Returns the last millisecond of the month.  This will be
     * determined relative to the time zone specified in the constructor, or
     * in the calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The last millisecond of the month.
     *
     * @see #getFirstMillisecond()
     */
    public long getLastMillisecond() {
      return this.lastMillisecond;
    }

    /**
     * Recalculates the start date/time and end date/time for this time period
     * relative to the supplied calendar (which incorporates a time zone).
     *
     * @param calendar  the calendar (<code>null</code> not permitted).
     *
     * @since 1.0.3
     */
    public void peg(Calendar calendar) {
      this.firstMillisecond = getFirstMillisecond(calendar);
      this.lastMillisecond = getLastMillisecond(calendar);
    }

Next
Previous

Clone Instance
5

Line Count
29

Source Line
209

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Quarter.java

    /**
     * Returns the first millisecond of the quarter.  This will be determined
     * relative to the time zone specified in the constructor, or in the
     * calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The first millisecond of the quarter.
     *
     * @see #getLastMillisecond()
     */
    public long getFirstMillisecond() {
      return this.firstMillisecond;
    }

    /**
     * Returns the last millisecond of the quarter.  This will be
     * determined relative to the time zone specified in the constructor, or
     * in the calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The last millisecond of the quarter.
     *
     * @see #getFirstMillisecond()
     */
    public long getLastMillisecond() {
      return this.lastMillisecond;
    }

    /**
     * Recalculates the start date/time and end date/time for this time period
     * relative to the supplied calendar (which incorporates a time zone).
     *
     * @param calendar  the calendar (<code>null</code> not permitted).
     *
     * @since 1.0.3
     */
    public void peg(Calendar calendar) {
      this.firstMillisecond = getFirstMillisecond(calendar);
      this.lastMillisecond = getLastMillisecond(calendar);
    }

Next
Previous

Clone Instance
6

Line Count
29

Source Line
261

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Week.java

    /**
     * Returns the first millisecond of the week.  This will be determined
     * relative to the time zone specified in the constructor, or in the
     * calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The first millisecond of the week.
     *
     * @see #getLastMillisecond()
     */
    public long getFirstMillisecond() {
      return this.firstMillisecond;
    }

    /**
     * Returns the last millisecond of the week.  This will be
     * determined relative to the time zone specified in the constructor, or
     * in the calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The last millisecond of the week.
     *
     * @see #getFirstMillisecond()
     */
    public long getLastMillisecond() {
      return this.lastMillisecond;
    }

    /**
     * Recalculates the start date/time and end date/time for this time period
     * relative to the supplied calendar (which incorporates a time zone).
     *
     * @param calendar  the calendar (<code>null</code> not permitted).
     *
     * @since 1.0.3
     */
    public void peg(Calendar calendar) {
      this.firstMillisecond = getFirstMillisecond(calendar);
      this.lastMillisecond = getLastMillisecond(calendar);
    }

First
Previous

Clone Instance
7

Line Count
29

Source Line
151

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Year.java

    /**
     * Returns the first millisecond of the year.  This will be determined
     * relative to the time zone specified in the constructor, or in the
     * calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The first millisecond of the year.
     *
     * @see #getLastMillisecond()
     */
    public long getFirstMillisecond() {
      return this.firstMillisecond;
    }

    /**
     * Returns the last millisecond of the year.  This will be
     * determined relative to the time zone specified in the constructor, or
     * in the calendar instance passed in the most recent call to the
     * {@link #peg(Calendar)} method.
     *
     * @return The last millisecond of the year.
     *
     * @see #getFirstMillisecond()
     */
    public long getLastMillisecond() {
      return this.lastMillisecond;
    }

    /**
     * Recalculates the start date/time and end date/time for this time period
     * relative to the supplied calendar (which incorporates a time zone).
     *
     * @param calendar  the calendar (<code>null</code> not permitted).
     *
     * @since 1.0.3
     */
    public void peg(Calendar calendar) {
      this.firstMillisecond = getFirstMillisecond(calendar);
      this.lastMillisecond = getLastMillisecond(calendar);
    }

Clone Abstraction | Parameter Count: 0 | Parameter Bindings

    /**
         * Returns the first millisecond of the week.  This will be determined
         * relative to the time zone specified in the constructor, or in the
         * calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The first millisecond of the week.
         *
         * @see #getLastMillisecond()
         */
    /**
         * Returns the first millisecond of the month.  This will be determined
         * relative to the time zone specified in the constructor, or in the
         * calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The first millisecond of the month.
         *
         * @see #getLastMillisecond()
         */
    /**
         * Returns the first millisecond of the minute.  This will be determined
         * relative to the time zone specified in the constructor, or in the
         * calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The first millisecond of the minute.
         *
         * @see #getLastMillisecond()
         */
    /**
         * Returns the first millisecond of the hour.  This will be determined
         * relative to the time zone specified in the constructor, or in the
         * calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The first millisecond of the hour.
         *
         * @see #getLastMillisecond()
         */
    /**
         * Returns the first millisecond of the quarter.  This will be determined
         * relative to the time zone specified in the constructor, or in the
         * calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The first millisecond of the quarter.
         *
         * @see #getLastMillisecond()
         */
    /**
         * Returns the first millisecond of the day.  This will be determined
         * relative to the time zone specified in the constructor, or in the
         * calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The first millisecond of the day.
         *
         * @see #getLastMillisecond()
         */
    /**
         * Returns the first millisecond of the year.  This will be determined
         * relative to the time zone specified in the constructor, or in the
         * calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The first millisecond of the year.
         *
         * @see #getLastMillisecond()
         */
    public long getFirstMillisecond() {
      return this.firstMillisecond;
    }

    /**
         * Returns the last millisecond of the week.  This will be
         * determined relative to the time zone specified in the constructor, or
         * in the calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The last millisecond of the week.
         *
         * @see #getFirstMillisecond()
         */
    /**
         * Returns the last millisecond of the month.  This will be
         * determined relative to the time zone specified in the constructor, or
         * in the calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The last millisecond of the month.
         *
         * @see #getFirstMillisecond()
         */
    /**
         * Returns the last millisecond of the minute.  This will be
         * determined relative to the time zone specified in the constructor, or
         * in the calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The last millisecond of the minute.
         *
         * @see #getFirstMillisecond()
         */
    /**
         * Returns the last millisecond of the hour.  This will be
         * determined relative to the time zone specified in the constructor, or
         * in the calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The last millisecond of the hour.
         *
         * @see #getFirstMillisecond()
         */
    /**
         * Returns the last millisecond of the quarter.  This will be
         * determined relative to the time zone specified in the constructor, or
         * in the calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The last millisecond of the quarter.
         *
         * @see #getFirstMillisecond()
         */
    /**
         * Returns the last millisecond of the day.  This will be
         * determined relative to the time zone specified in the constructor, or
         * in the calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The last millisecond of the day.
         *
         * @see #getFirstMillisecond()
         */
    /**
         * Returns the last millisecond of the year.  This will be
         * determined relative to the time zone specified in the constructor, or
         * in the calendar instance passed in the most recent call to the
         * {@link #peg(Calendar)} method.
         *
         * @return The last millisecond of the year.
         *
         * @see #getFirstMillisecond()
         */
    public long getLastMillisecond() {
      return this.lastMillisecond;
    }

    /**
         * Recalculates the start date/time and end date/time for this time period
         * relative to the supplied calendar (which incorporates a time zone).
         *
         * @param calendar  the calendar (<code>null</code> not permitted).
         *
         * @since 1.0.3
         */
    public void peg(Calendar calendar) {
      this.firstMillisecond = getFirstMillisecond(calendar);
      this.lastMillisecond = getLastMillisecond(calendar);
    }

CloneAbstraction

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