@Test public void testEqualsSame() { final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA, PatternType.PATTERN_ON_FILENAME, "abc"); final ArchiveIdentifierPattern ai2 = ai1; Assert.assertTrue("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; } ArchiveIdentifierPattern other = (ArchiveIdentifierPattern) obj; return Objects.equals(pattern.pattern(), other.pattern.pattern()) && patternType == other.patternType; }
ArchiveIdentifierPattern 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; } ArchiveIdentifierPattern other = (ArchiveIdentifierPattern) obj; return Objects.equals(pattern.pattern(), other.pattern.pattern()) && patternType == other.patternType; } }
ArchiveIdentifierPattern 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; } ArchiveIdentifierPattern other = (ArchiveIdentifierPattern) obj; return Objects.equals(pattern.pattern(), other.pattern.pattern()) && patternType == other.patternType; } ArchiveIdentifierPattern(final ArchiveType archiveType, final PatternType patternType, final String regex); }
ArchiveIdentifierPattern 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; } ArchiveIdentifierPattern other = (ArchiveIdentifierPattern) obj; return Objects.equals(pattern.pattern(), other.pattern.pattern()) && patternType == other.patternType; } ArchiveIdentifierPattern(final ArchiveType archiveType, final PatternType patternType, final String regex); final PatternType getPatternType(); final Pattern getPattern(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
ArchiveIdentifierPattern 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; } ArchiveIdentifierPattern other = (ArchiveIdentifierPattern) obj; return Objects.equals(pattern.pattern(), other.pattern.pattern()) && patternType == other.patternType; } ArchiveIdentifierPattern(final ArchiveType archiveType, final PatternType patternType, final String regex); final PatternType getPatternType(); final Pattern getPattern(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }