CloneSet186


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
29701.000class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
129225
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Day.java
229217
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Hour.java
329223
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Minute.java
429192
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Month.java
529209
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Quarter.java
629261
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Week.java
729151
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 AbstractionParameter Count: 0Parameter 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