@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (!(obj instanceof HiveIntervalDayTime)) {
      return false;
    }
    return 0 == compareTo((HiveIntervalDayTime) obj);
  }
Ensures that the seconds and nanoseconds fields have consistent sign
storage-api/src/java/org/apache/hadoop/hive/common/type/HiveIntervalDayTime.java