@Test public void testEquals() throws Exception { Assert.assertEquals(true, new RuleInfo().equals(new RuleInfo())); RuleInfo ruleInfo = new RuleInfo(1, 1, "", RuleState.ACTIVE, 1, 1, 1); Assert.assertEquals(true, ruleInfo.equals(ruleInfo)); RuleInfo ruleInfo1 = new RuleInfo(1, 1, "", null, 1, 1, 1); Assert.assertEquals(false, ruleInfo.equals(ruleInfo1)); Assert.assertEquals(false, ruleInfo1.equals(ruleInfo)); RuleInfo ruleInfo2 = new RuleInfo(1, 1, null, RuleState.ACTIVE, 1, 1, 1); Assert.assertEquals(false, ruleInfo.equals(ruleInfo2)); Assert.assertEquals(false, ruleInfo2.equals(ruleInfo)); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuleInfo ruleInfo = (RuleInfo) o; return id == ruleInfo.id && submitTime == ruleInfo.submitTime && numChecked == ruleInfo.numChecked && numCmdsGen == ruleInfo.numCmdsGen && lastCheckTime == ruleInfo.lastCheckTime && Objects.equals(ruleText, ruleInfo.ruleText) && state == ruleInfo.state; }
RuleInfo implements Cloneable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuleInfo ruleInfo = (RuleInfo) o; return id == ruleInfo.id && submitTime == ruleInfo.submitTime && numChecked == ruleInfo.numChecked && numCmdsGen == ruleInfo.numCmdsGen && lastCheckTime == ruleInfo.lastCheckTime && Objects.equals(ruleText, ruleInfo.ruleText) && state == ruleInfo.state; } }
RuleInfo implements Cloneable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuleInfo ruleInfo = (RuleInfo) o; return id == ruleInfo.id && submitTime == ruleInfo.submitTime && numChecked == ruleInfo.numChecked && numCmdsGen == ruleInfo.numCmdsGen && lastCheckTime == ruleInfo.lastCheckTime && Objects.equals(ruleText, ruleInfo.ruleText) && state == ruleInfo.state; } RuleInfo();  RuleInfo(long id, long submitTime, String ruleText, RuleState state,
      long numChecked, long numCmdsGen, long lastCheckTime); }
RuleInfo implements Cloneable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuleInfo ruleInfo = (RuleInfo) o; return id == ruleInfo.id && submitTime == ruleInfo.submitTime && numChecked == ruleInfo.numChecked && numCmdsGen == ruleInfo.numCmdsGen && lastCheckTime == ruleInfo.lastCheckTime && Objects.equals(ruleText, ruleInfo.ruleText) && state == ruleInfo.state; } RuleInfo();  RuleInfo(long id, long submitTime, String ruleText, RuleState state,
      long numChecked, long numCmdsGen, long lastCheckTime); long getId(); void setId(long id); long getSubmitTime(); void setSubmitTime(long submitTime); String getRuleText(); void setRuleText(String ruleText); RuleState getState(); void setState(RuleState state); long getNumChecked(); void setNumChecked(long numChecked); long getNumCmdsGen(); void setNumCmdsGen(long numCmdsGen); long getLastCheckTime(); void setLastCheckTime(long lastCheckTime); void updateRuleInfo(RuleState rs, long lastCheckTime,
      long checkedCount, int cmdletsGen); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); RuleInfo newCopy(); static Builder newBuilder(); }
RuleInfo implements Cloneable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuleInfo ruleInfo = (RuleInfo) o; return id == ruleInfo.id && submitTime == ruleInfo.submitTime && numChecked == ruleInfo.numChecked && numCmdsGen == ruleInfo.numCmdsGen && lastCheckTime == ruleInfo.lastCheckTime && Objects.equals(ruleText, ruleInfo.ruleText) && state == ruleInfo.state; } RuleInfo();  RuleInfo(long id, long submitTime, String ruleText, RuleState state,
      long numChecked, long numCmdsGen, long lastCheckTime); long getId(); void setId(long id); long getSubmitTime(); void setSubmitTime(long submitTime); String getRuleText(); void setRuleText(String ruleText); RuleState getState(); void setState(RuleState state); long getNumChecked(); void setNumChecked(long numChecked); long getNumCmdsGen(); void setNumCmdsGen(long numCmdsGen); long getLastCheckTime(); void setLastCheckTime(long lastCheckTime); void updateRuleInfo(RuleState rs, long lastCheckTime,
      long checkedCount, int cmdletsGen); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); RuleInfo newCopy(); static Builder newBuilder();  }