예제 #1
0
 @Test
 public void testPropEquals() {
   Protocol p1 = new Protocol("P", null, "foo");
   p1.addProp("a", "1");
   Protocol p2 = new Protocol("P", null, "foo");
   p2.addProp("a", "2");
   assertFalse(p1.equals(p2));
 }
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof IdentificationMetaData)) return false;
    if (!super.equals(o)) return false;

    IdentificationMetaData that = (IdentificationMetaData) o;

    if (proteinDetectionProtocol != null
        ? !proteinDetectionProtocol.equals(that.proteinDetectionProtocol)
        : that.proteinDetectionProtocol != null) return false;
    return searchDataBases.equals(that.searchDataBases)
        && spectrumIdentificationProtocols.equals(that.spectrumIdentificationProtocols);
  }