コード例 #1
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof DescribeLoadBalancersResult == false) return false;
    DescribeLoadBalancersResult other = (DescribeLoadBalancersResult) obj;
    if (other.getLoadBalancerDescriptions() == null ^ this.getLoadBalancerDescriptions() == null)
      return false;
    if (other.getLoadBalancerDescriptions() != null
        && other.getLoadBalancerDescriptions().equals(this.getLoadBalancerDescriptions()) == false)
      return false;
    if (other.getNextMarker() == null ^ this.getNextMarker() == null) return false;
    if (other.getNextMarker() != null
        && other.getNextMarker().equals(this.getNextMarker()) == false) return false;
    return true;
  }