CloneSet358


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
51220.973class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16159
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/TimePeriodValue.java
25184
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/TimeSeriesDataItem.java
Next
Last
Clone Instance
1
Line Count
61
Source Line
59
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/TimePeriodValue.java

/** The value associated with the time period. */
private Number value;

/**
 * Constructs a new data item.
 *
 * @param period  the time period (<code>null</code> not permitted).
 * @param value  the value associated with the time period.
 * 
 * @throws IllegalArgumentException if <code>period</code> is 
 *     <code>null</code>.
 */
public TimePeriodValue(TimePeriod period, Number value) {
  if (period == null) {
    throw new IllegalArgumentException("Null \'period\' argument.");
  }
  this.period = period;
  this.value = value;
}

/**
 * Constructs a new data item.
 *
 * @param period  the time period (<code>null</code> not permitted).
 * @param value  the value associated with the time period.
 * 
 * @throws IllegalArgumentException if <code>period</code> is 
 *     <code>null</code>.
 */
public TimePeriodValue(TimePeriod period, double value) {
  this(period, new Double(value));
}

/**
 * Returns the time period.
 *
 * @return The time period (never <code>null</code>).
 */
public TimePeriod getPeriod() {
  return this.period;
}

/**
 * Returns the value.
 *
 * @return The value (possibly <code>null</code>).
 * 
 * @see #setValue(Number)
 */
public Number getValue() {
  return this.value;
}

/**
 * Sets the value for this data item.
 *
 * @param value  the new value (<code>null</code> permitted).
 * 
 * @see #getValue()
 */
public void setValue(Number value) {
  this.value = value;
}


First
Previous
Clone Instance
2
Line Count
51
Source Line
84
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/TimeSeriesDataItem.java

/** The value associated with the time period. */
private Number value;

/**
 * Constructs a new data item that associates a value with a time period.
 *
 * @param period  the time period (<code>null</code> not permitted).
 * @param value  the value (<code>null</code> permitted).
 */
public TimeSeriesDataItem(RegularTimePeriod period, Number value) {
  if (period == null) {
    throw new IllegalArgumentException("Null \'period\' argument.");
  }
  this.period = period;
  this.value = value;
}

/**
 * Constructs a new data item that associates a value with a time period.
 *
 * @param period  the time period (<code>null</code> not permitted).
 * @param value  the value associated with the time period.
 */
public TimeSeriesDataItem(RegularTimePeriod period, double value) {
  this(period, new Double(value));
}

/**
 * Returns the time period.
 *
 * @return The time period (never <code>null</code>).
 */
public RegularTimePeriod getPeriod() {
  return this.period;
}

/**
 * Returns the value.
 *
 * @return The value (<code>null</code> possible).
 */
public Number getValue() {
  return this.value;
}

/**
 * Sets the value for this data item.
 *
 * @param value  the value (<code>null</code> permitted).
 */
public void setValue(Number value) {
  this.value = value;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/** The value associated with the time period. */
private Number value;

/**
     * Constructs a new data item that associates a value with a time period.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value (<code>null</code> permitted).
     */
/**
     * Constructs a new data item.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value associated with the time period.
     * 
     * @throws IllegalArgumentException if <code>period</code> is 
     *     <code>null</code>.
     */
public [[#variable1a938f60]]( [[#variable1a9395c0]] period, Number value) {
  if (period == null) {
    throw new IllegalArgumentException("Null \'period\' argument.");
  }
  this.period = period;
  this.value = value;
}

/**
     * Constructs a new data item that associates a value with a time period.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value associated with the time period.
     */
/**
     * Constructs a new data item.
     *
     * @param period  the time period (<code>null</code> not permitted).
     * @param value  the value associated with the time period.
     * 
     * @throws IllegalArgumentException if <code>period</code> is 
     *     <code>null</code>.
     */
public [[#variable1a938f60]]( [[#variable1a9395c0]] period, double value) {
  this(period, new Double(value));
}

/**
     * Returns the time period.
     *
     * @return The time period (never <code>null</code>).
     */
public [[#variable1a9395c0]] getPeriod() {
  return this.period;
}

/**
     * Returns the value.
     *
     * @return The value (<code>null</code> possible).
     */
/**
     * Returns the value.
     *
     * @return The value (possibly <code>null</code>).
     * 
     * @see #setValue(Number)
     */
public Number getValue() {
  return this.value;
}

/**
     * Sets the value for this data item.
     *
     * @param value  the value (<code>null</code> permitted).
     */
/**
     * Sets the value for this data item.
     *
     * @param value  the new value (<code>null</code> permitted).
     * 
     * @see #getValue()
     */
public void setValue(Number value) {
  this.value = value;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a938f60]]
TimePeriodValue 
12[[#1a938f60]]
TimeSeriesDataItem 
21[[#1a9395c0]]
TimePeriod 
22[[#1a9395c0]]
RegularTimePeriod