@Test public void testEqualsArchiveIdentifier() { final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, "abc", new LSMessageDigest(new byte[] { 1 })); final ArchiveIdentifier ai2 = new ArchiveIdentifier(ArchiveType.JAVA, NameMatchingType.PATTERN, "abc") { }; Assert.assertFalse("equals()", ai1.equals(ai2)); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ArchiveIdentifierMessageDigest other = (ArchiveIdentifierMessageDigest) obj; return Objects.equals(messageDigest, other.messageDigest); }
ArchiveIdentifierMessageDigest extends ArchiveIdentifier { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ArchiveIdentifierMessageDigest other = (ArchiveIdentifierMessageDigest) obj; return Objects.equals(messageDigest, other.messageDigest); } }
ArchiveIdentifierMessageDigest extends ArchiveIdentifier { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ArchiveIdentifierMessageDigest other = (ArchiveIdentifierMessageDigest) obj; return Objects.equals(messageDigest, other.messageDigest); } ArchiveIdentifierMessageDigest(final ArchiveType archiveType, final String name,
            final LSMessageDigest messageDigest);  ArchiveIdentifierMessageDigest(final ArchiveType archiveType, final String name,
            final String messageDigestHexString); }
ArchiveIdentifierMessageDigest extends ArchiveIdentifier { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ArchiveIdentifierMessageDigest other = (ArchiveIdentifierMessageDigest) obj; return Objects.equals(messageDigest, other.messageDigest); } ArchiveIdentifierMessageDigest(final ArchiveType archiveType, final String name,
            final LSMessageDigest messageDigest);  ArchiveIdentifierMessageDigest(final ArchiveType archiveType, final String name,
            final String messageDigestHexString); final LSMessageDigest getMessageDigest(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ArchiveIdentifierMessageDigest extends ArchiveIdentifier { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } ArchiveIdentifierMessageDigest other = (ArchiveIdentifierMessageDigest) obj; return Objects.equals(messageDigest, other.messageDigest); } ArchiveIdentifierMessageDigest(final ArchiveType archiveType, final String name,
            final LSMessageDigest messageDigest);  ArchiveIdentifierMessageDigest(final ArchiveType archiveType, final String name,
            final String messageDigestHexString); final LSMessageDigest getMessageDigest(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }