@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageId() == null) ? 0 : getFpgaImageId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLoadPermissions() == null) ? 0 : getLoadPermissions().hashCode()); hashCode = prime * hashCode + ((getProductCodes() == null) ? 0 : getProductCodes().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 (getFpgaImageId() != null) sb.append("FpgaImageId: ").append(getFpgaImageId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLoadPermissions() != null) sb.append("LoadPermissions: ").append(getLoadPermissions()).append(","); if (getProductCodes() != null) sb.append("ProductCodes: ").append(getProductCodes()); sb.append("}"); return sb.toString(); }
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getLoadPermissions() == null ^ this.getLoadPermissions() == null) return false; if (other.getLoadPermissions() != null && other.getLoadPermissions().equals(this.getLoadPermissions()) == false) return false; if (other.getProductCodes() == null ^ this.getProductCodes() == null)
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFpgaImageId() == null) ? 0 : getFpgaImageId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLoadPermissions() == null) ? 0 : getLoadPermissions().hashCode()); hashCode = prime * hashCode + ((getProductCodes() == null) ? 0 : getProductCodes().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 (getFpgaImageId() != null) sb.append("FpgaImageId: ").append(getFpgaImageId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLoadPermissions() != null) sb.append("LoadPermissions: ").append(getLoadPermissions()).append(","); if (getProductCodes() != null) sb.append("ProductCodes: ").append(getProductCodes()); sb.append("}"); return sb.toString(); }
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getLoadPermissions() == null ^ this.getLoadPermissions() == null) return false; if (other.getLoadPermissions() != null && other.getLoadPermissions().equals(this.getLoadPermissions()) == false) return false; if (other.getProductCodes() == null ^ this.getProductCodes() == null)