Exemplo n.º 1
0
 @Override
 public int hashCode() {
   int result = dateRun.hashCode();
   result = 31 * result + number.hashCode();
   result = 31 * result + name.hashCode();
   return result;
 }
Exemplo n.º 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;
  }