diff --git a/src/main/java/br/com/skywalker/coordinateconverter/Datum.java b/src/main/java/br/com/skywalker/coordinateconverter/Datum.java index 50a69e9..6773972 100644 --- a/src/main/java/br/com/skywalker/coordinateconverter/Datum.java +++ b/src/main/java/br/com/skywalker/coordinateconverter/Datum.java @@ -14,4 +14,12 @@ public interface Datum { String name(); -} \ No newline at end of file + default boolean isEqual(Datum other) { + return null != other && + this.getSemiAxis() == other.getSemiAxis() && + this.getFlatness() == other.getFlatness() && + this.getDeltaX() == other.getDeltaX() && + this.getDeltaY() == other.getDeltaY() && + this.getDeltaZ() == other.getDeltaZ(); + } +}