Improvement of toString().
@@ -61,10 +61,6 @@ public abstract class AbstractCurve implements CurveInterface, Cloneable {
return values;
}
- public String toString() {
- return super.toString() + "\n\"" + this.getName() + "\"";
- }
-
@Override
public AbstractCurve clone() throws CloneNotSupportedException {
return (AbstractCurve)super.clone();
@@ -74,4 +70,9 @@ public abstract class AbstractCurve implements CurveInterface, Cloneable {
public CurveInterface getCloneForParameter(double[] value) throws CloneNotSupportedException {
throw new CloneNotSupportedException();
}
+
+ @Override
+ public String toString() {
+ return "AbstractCurve [name=" + name + ", referenceDate=" + referenceDate + "]";
+ }
}
\ No newline at end of file
