@Test public void testHashCode() throws Exception { HashSet<Level> levels = new HashSet<Level>(); levels.add(Level.ALL); levels.add(Level.ALL); levels.add(Level.SCOPED); assertEquals(2, levels.size()); }
@Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); }
Level { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } }
Level { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } private  Level(String name); }
Level { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } private  Level(String name); static Level get(String name); static boolean isLevel(String name); static synchronized Level addLevel(String name); static void addLevels(PreferenceEnum... enums); String getName(); @Override boolean equals(Object o); @Override int hashCode(); }
Level { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } private  Level(String name); static Level get(String name); static boolean isLevel(String name); static synchronized Level addLevel(String name); static void addLevels(PreferenceEnum... enums); String getName(); @Override boolean equals(Object o); @Override int hashCode(); static Level ALL; static Level SCOPED; }