Пример #1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    CvsRepositoryItem that = (CvsRepositoryItem) o;

    if (location != null ? !location.equals(that.location) : that.location != null) return false;
    if (!Arrays.equals(modules, that.modules)) return false;

    return true;
  }
Пример #2
0
 @Override
 public int hashCode() {
   int result = modules != null ? Arrays.hashCode(modules) : 0;
   result = 31 * result + (location != null ? location.hashCode() : 0);
   return result;
 }