@Test public void testEquals() throws Exception { Rule aRule = new Rule(); Rule otherRule = new Rule(); assertFalse(aRule.equals((Object) otherRule)); }
@Override public boolean equals(Object obj) { boolean result = false; result = this.checkObject(obj); if (result == false) { Rule aRule = (Rule) obj; result = this.checkProtocol(aRule); } return result; }
Rule { @Override public boolean equals(Object obj) { boolean result = false; result = this.checkObject(obj); if (result == false) { Rule aRule = (Rule) obj; result = this.checkProtocol(aRule); } return result; } }
Rule { @Override public boolean equals(Object obj) { boolean result = false; result = this.checkObject(obj); if (result == false) { Rule aRule = (Rule) obj; result = this.checkProtocol(aRule); } return result; } Rule();  Rule(String ipProtocol, String fromPort, String toPort, String sourceGroup, String cidr); }
Rule { @Override public boolean equals(Object obj) { boolean result = false; result = this.checkObject(obj); if (result == false) { Rule aRule = (Rule) obj; result = this.checkProtocol(aRule); } return result; } Rule();  Rule(String ipProtocol, String fromPort, String toPort, String sourceGroup, String cidr); @SuppressWarnings("unchecked") void fromJson(JSONObject jsonNode); String getCidr(); String getFromPort(); String getIdParent(); String getIdRule(); String getIpProtocol(); String getSourceGroup(); String getToPort(); void setCidr(String cidr); void setFromPort(String fromPort); void setIdParent(String idparent); void setIdRule(String idrule); void setIpProtocol(String ipProtocol); void setSourceGroup(String sourceGroup); void setToPort(String toPort); String toJSON(); @Override boolean equals(Object obj); boolean checkProtocol(Rule aRule); boolean checkObject(Object aObject); @Override int hashCode(); String toString(); }
Rule { @Override public boolean equals(Object obj) { boolean result = false; result = this.checkObject(obj); if (result == false) { Rule aRule = (Rule) obj; result = this.checkProtocol(aRule); } return result; } Rule();  Rule(String ipProtocol, String fromPort, String toPort, String sourceGroup, String cidr); @SuppressWarnings("unchecked") void fromJson(JSONObject jsonNode); String getCidr(); String getFromPort(); String getIdParent(); String getIdRule(); String getIpProtocol(); String getSourceGroup(); String getToPort(); void setCidr(String cidr); void setFromPort(String fromPort); void setIdParent(String idparent); void setIdRule(String idrule); void setIpProtocol(String ipProtocol); void setSourceGroup(String sourceGroup); void setToPort(String toPort); String toJSON(); @Override boolean equals(Object obj); boolean checkProtocol(Rule aRule); boolean checkObject(Object aObject); @Override int hashCode(); String toString();  }