@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSolutionStacks() == null) ? 0 : getSolutionStacks().hashCode()); hashCode = prime * hashCode + ((getSolutionStackDetails() == null) ? 0 : getSolutionStackDetails().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 (getSolutionStacks() != null) sb.append("SolutionStacks: ").append(getSolutionStacks()).append(","); if (getSolutionStackDetails() != null) sb.append("SolutionStackDetails: ").append(getSolutionStackDetails()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListAvailableSolutionStacksResult == false) return false; ListAvailableSolutionStacksResult other = (ListAvailableSolutionStacksResult) obj; if (other.getSolutionStacks() == null ^ this.getSolutionStacks() == null) return false; if (other.getSolutionStacks() != null && other.getSolutionStacks().equals(this.getSolutionStacks()) == false) return false; if (other.getSolutionStackDetails() == null ^ this.getSolutionStackDetails() == null) return false; if (other.getSolutionStackDetails() != null && other.getSolutionStackDetails().equals(this.getSolutionStackDetails()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSolutionStacks() == null) ? 0 : getSolutionStacks().hashCode()); hashCode = prime * hashCode + ((getSolutionStackDetails() == null) ? 0 : getSolutionStackDetails().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 (getSolutionStacks() != null) sb.append("SolutionStacks: ").append(getSolutionStacks()).append(","); if (getSolutionStackDetails() != null) sb.append("SolutionStackDetails: ").append(getSolutionStackDetails()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListAvailableSolutionStacksResult == false) return false; ListAvailableSolutionStacksResult other = (ListAvailableSolutionStacksResult) obj; if (other.getSolutionStacks() == null ^ this.getSolutionStacks() == null) return false; if (other.getSolutionStacks() != null && other.getSolutionStacks().equals(this.getSolutionStacks()) == false) return false; if (other.getSolutionStackDetails() == null ^ this.getSolutionStackDetails() == null) return false; if (other.getSolutionStackDetails() != null && other.getSolutionStackDetails().equals(this.getSolutionStackDetails()) == false) return false; return true; }
final List<SolutionStackDescription> stackDetails = getService().listAvailableSolutionStacks().getSolutionStackDetails();