/** 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;
}
|