@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode()); hashCode = prime * hashCode + ((getInstances() == null) ? 0 : getInstances().hashCode()); hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getRequesterId() == null) ? 0 : getRequesterId().hashCode()); hashCode = prime * hashCode + ((getReservationId() == null) ? 0 : getReservationId().hashCode()); hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getGroups() != null) sb.append("Groups: ").append(getGroups()).append(","); if (getInstances() != null) sb.append("Instances: ").append(getInstances()).append(","); if (getOwnerId() != null) sb.append("OwnerId: ").append(getOwnerId()).append(","); if (getRequesterId() != null) sb.append("RequesterId: ").append(getRequesterId()).append(","); if (getReservationId() != null) sb.append("ReservationId: ").append(getReservationId()).append(","); if (getGroupNames() != null) sb.append("GroupNames: ").append(getGroupNames()); sb.append("}"); return sb.toString(); }
if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getRequesterId() == null ^ this.getRequesterId() == null) return false; if (other.getRequesterId() != null && other.getRequesterId().equals(this.getRequesterId()) == false) return false; if (other.getReservationId() == null ^ this.getReservationId() == null)
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReservationId() == null) ? 0 : getReservationId().hashCode()); hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getRequesterId() == null) ? 0 : getRequesterId().hashCode()); hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode()); hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode()); hashCode = prime * hashCode + ((getInstances() == null) ? 0 : getInstances().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getReservationId() != null) sb.append("ReservationId: " + getReservationId() + ","); if (getOwnerId() != null) sb.append("OwnerId: " + getOwnerId() + ","); if (getRequesterId() != null) sb.append("RequesterId: " + getRequesterId() + ","); if (getGroups() != null) sb.append("Groups: " + getGroups() + ","); if (getGroupNames() != null) sb.append("GroupNames: " + getGroupNames() + ","); if (getInstances() != null) sb.append("Instances: " + getInstances() ); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Reservation == false) return false; Reservation other = (Reservation)obj; if (other.getReservationId() == null ^ this.getReservationId() == null) return false; if (other.getReservationId() != null && other.getReservationId().equals(this.getReservationId()) == false) return false; if (other.getOwnerId() == null ^ this.getOwnerId() == null) return false; if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getRequesterId() == null ^ this.getRequesterId() == null) return false; if (other.getRequesterId() != null && other.getRequesterId().equals(this.getRequesterId()) == false) return false; if (other.getGroups() == null ^ this.getGroups() == null) return false; if (other.getGroups() != null && other.getGroups().equals(this.getGroups()) == false) return false; if (other.getGroupNames() == null ^ this.getGroupNames() == null) return false; if (other.getGroupNames() != null && other.getGroupNames().equals(this.getGroupNames()) == false) return false; if (other.getInstances() == null ^ this.getInstances() == null) return false; if (other.getInstances() != null && other.getInstances().equals(this.getInstances()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode()); hashCode = prime * hashCode + ((getInstances() == null) ? 0 : getInstances().hashCode()); hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getRequesterId() == null) ? 0 : getRequesterId().hashCode()); hashCode = prime * hashCode + ((getReservationId() == null) ? 0 : getReservationId().hashCode()); hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getGroups() != null) sb.append("Groups: ").append(getGroups()).append(","); if (getInstances() != null) sb.append("Instances: ").append(getInstances()).append(","); if (getOwnerId() != null) sb.append("OwnerId: ").append(getOwnerId()).append(","); if (getRequesterId() != null) sb.append("RequesterId: ").append(getRequesterId()).append(","); if (getReservationId() != null) sb.append("ReservationId: ").append(getReservationId()).append(","); if (getGroupNames() != null) sb.append("GroupNames: ").append(getGroupNames()); sb.append("}"); return sb.toString(); }
if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getRequesterId() == null ^ this.getRequesterId() == null) return false; if (other.getRequesterId() != null && other.getRequesterId().equals(this.getRequesterId()) == false) return false; if (other.getReservationId() == null ^ this.getReservationId() == null)