Skip to content
Snippets Groups Projects

F state change

Closed Timm Fitschen requested to merge f-state-change into f-grpc-f-acm
10 files
+ 186
11
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -22,7 +22,9 @@
*/
package org.caosdb.datetime;
import java.util.Objects;
import java.util.TimeZone;
import org.caosdb.server.datatype.Value;
public abstract class FragmentDateTime implements DateTimeInterface {
@@ -53,4 +55,13 @@ public abstract class FragmentDateTime implements DateTimeInterface {
this.nanosecond = nanosecond;
this.timeZone = tz;
}
@Override
public boolean equals(Value val) {
if (val instanceof FragmentDateTime) {
FragmentDateTime that = (FragmentDateTime) val;
return Objects.equals(that.toDatabaseString(), this.toDatabaseString());
}
return false;
}
}
Loading