コード例 #1
0
 @Override
 public int hashCode() {
   int result = dateRun.hashCode();
   result = 31 * result + number.hashCode();
   result = 31 * result + name.hashCode();
   return result;
 }
コード例 #2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    MigrationLogItem that = (MigrationLogItem) o;

    if (!stripMillis(dateRun).equals(stripMillis(that.dateRun))) return false;
    if (!name.equals(that.name)) return false;
    if (!number.equals(that.number)) return false;

    return true;
  }