Skip to content
Permalink
Browse files
only allow one account per config and allocation
  • Loading branch information
mgeiss committed Sep 20, 2017
1 parent ce161c6 commit d59dc5c81b2a096f3f7f10cebe772b4af77126e9
Showing 1 changed file with 15 additions and 0 deletions.
@@ -59,4 +59,19 @@ public Boolean getProportional() {
public void setProportional(final Boolean proportional) {
this.proportional = proportional;
}

@Override
public boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

final PayrollAllocation that = (PayrollAllocation) o;

return accountNumber != null ? accountNumber.equals(that.accountNumber) : that.accountNumber == null;
}

@Override
public int hashCode() {
return accountNumber != null ? accountNumber.hashCode() : 0;
}
}

0 comments on commit d59dc5c

Please sign in to comment.