*
* @param timestamp the timestamp to copy
*/
- public TmfSimpleTimestamp(TmfSimpleTimestamp timestamp) {
+ public TmfSimpleTimestamp(ITmfTimestamp timestamp) {
if (timestamp == null || timestamp.getScale() != 0 || timestamp.getPrecision() != 0)
throw new IllegalArgumentException();
fValue = timestamp.getValue();
if (!(other instanceof TmfSimpleTimestamp))
return super.equals(other);
TmfSimpleTimestamp ts = (TmfSimpleTimestamp) other;
+
return compareTo(ts, false) == 0;
}