public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof UnitUserId))
return false;
UnitUserId castOther = (UnitUserId) other;
return ((this.getUserid() == castOther.getUserid()) || (this
.getUserid() != null
&& castOther.getUserid() != null && this.getUserid().equals(
castOther.getUserid())))
&& ((this.getUnitid() == castOther.getUnitid()) || (this
.getUnitid() != null
&& castOther.getUnitid() != null && this.getUnitid()
.equals(castOther.getUnitid())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getUserid() == null ? 0 : this.getUserid().hashCode());
result = 37 * result
+ (getUnitid() == null ? 0 : this.getUnitid().hashCode());
return result;
}
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof UnitUserId))
return false;
UnitUserId castOther = (UnitUserId) other;
return ((this.getUserid() == castOther.getUserid()) || (this
.getUserid() != null
&& castOther.getUserid() != null && this.getUserid().equals(
castOther.getUserid())))
&& ((this.getUnitid() == castOther.getUnitid()) || (this
.getUnitid() != null
&& castOther.getUnitid() != null && this.getUnitid()
.equals(castOther.getUnitid())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getUserid() == null ? 0 : this.getUserid().hashCode());
result = 37 * result
+ (getUnitid() == null ? 0 : this.getUnitid().hashCode());
return result;
}