public boolean equals()

in cloudsigma2/src/main/java/org/jclouds/cloudsigma2/domain/FirewallRule.java [199:217]


   public boolean equals(Object o) {
      if (this == o) return true;
      if (!(o instanceof FirewallRule)) return false;

      FirewallRule that = (FirewallRule) o;

      if (action != that.action) return false;
      if (comment != null ? !comment.equals(that.comment) : that.comment != null) return false;
      if (destinationIp != null ? !destinationIp.equals(that.destinationIp) : that.destinationIp != null)
         return false;
      if (destinationPort != null ? !destinationPort.equals(that.destinationPort) : that.destinationPort != null)
         return false;
      if (direction != that.direction) return false;
      if (ipProtocol != that.ipProtocol) return false;
      if (sourceIp != null ? !sourceIp.equals(that.sourceIp) : that.sourceIp != null) return false;
      if (sourcePort != null ? !sourcePort.equals(that.sourcePort) : that.sourcePort != null) return false;

      return true;
   }