@Test public void testEquals() { Assert.assertEquals(plain, otherPlain); Assert.assertFalse(plain.equals(changed)); Assert.assertFalse(changed.equals(plain)); Assert.assertFalse(plain.equals(changed2)); Assert.assertFalse(changed2.equals(plain)); Assert.assertTrue(plain.equals(changed3)); Assert.assertTrue(changed3.equals(plain)); Assert.assertFalse(plain.equals(changed4)); Assert.assertFalse(changed4.equals(plain)); }
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } ProjectFilterSettings other = (ProjectFilterSettings) obj; return this.getMinPriority().equals(other.getMinPriority()) && this.getMinRank() == other.getMinRank() && this.hiddenBugCategorySet.equals(other.hiddenBugCategorySet) && this.displayFalseWarnings == other.displayFalseWarnings; }
ProjectFilterSettings implements Cloneable { @Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } ProjectFilterSettings other = (ProjectFilterSettings) obj; return this.getMinPriority().equals(other.getMinPriority()) && this.getMinRank() == other.getMinRank() && this.hiddenBugCategorySet.equals(other.hiddenBugCategorySet) && this.displayFalseWarnings == other.displayFalseWarnings; } }
ProjectFilterSettings implements Cloneable { @Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } ProjectFilterSettings other = (ProjectFilterSettings) obj; return this.getMinPriority().equals(other.getMinPriority()) && this.getMinRank() == other.getMinRank() && this.hiddenBugCategorySet.equals(other.hiddenBugCategorySet) && this.displayFalseWarnings == other.displayFalseWarnings; } private  ProjectFilterSettings(); }
ProjectFilterSettings implements Cloneable { @Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } ProjectFilterSettings other = (ProjectFilterSettings) obj; return this.getMinPriority().equals(other.getMinPriority()) && this.getMinRank() == other.getMinRank() && this.hiddenBugCategorySet.equals(other.hiddenBugCategorySet) && this.displayFalseWarnings == other.displayFalseWarnings; } private  ProjectFilterSettings(); void setMinRank(int minRank); int getMinRank(); static ProjectFilterSettings createDefault(); static ProjectFilterSettings fromEncodedString(String s); static void hiddenFromEncodedString(ProjectFilterSettings result, String s); boolean displayWarning(BugInstance bugInstance); void setMinPriority(String minPriority); String getMinPriority(); int getMinPriorityAsInt(); void addCategory(String category); void removeCategory(String category); void clearAllCategories(); boolean containsCategory(String category); Set<String> getActiveCategorySet(); void setDisplayFalseWarnings(boolean displayFalseWarnings); boolean displayFalseWarnings(); String hiddenToEncodedString(); String toEncodedString(); @Override String toString(); @Override boolean equals(Object obj); @Override Object clone(); @Override int hashCode(); static String getIntPriorityAsString(int prio); }
ProjectFilterSettings implements Cloneable { @Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } ProjectFilterSettings other = (ProjectFilterSettings) obj; return this.getMinPriority().equals(other.getMinPriority()) && this.getMinRank() == other.getMinRank() && this.hiddenBugCategorySet.equals(other.hiddenBugCategorySet) && this.displayFalseWarnings == other.displayFalseWarnings; } private  ProjectFilterSettings(); void setMinRank(int minRank); int getMinRank(); static ProjectFilterSettings createDefault(); static ProjectFilterSettings fromEncodedString(String s); static void hiddenFromEncodedString(ProjectFilterSettings result, String s); boolean displayWarning(BugInstance bugInstance); void setMinPriority(String minPriority); String getMinPriority(); int getMinPriorityAsInt(); void addCategory(String category); void removeCategory(String category); void clearAllCategories(); boolean containsCategory(String category); Set<String> getActiveCategorySet(); void setDisplayFalseWarnings(boolean displayFalseWarnings); boolean displayFalseWarnings(); String hiddenToEncodedString(); String toEncodedString(); @Override String toString(); @Override boolean equals(Object obj); @Override Object clone(); @Override int hashCode(); static String getIntPriorityAsString(int prio); static final String HIGH_PRIORITY; static final String MEDIUM_PRIORITY; static final String LOW_PRIORITY; static final String EXPERIMENTAL_PRIORITY; static final String DEFAULT_PRIORITY; }