@Test public void equality() { ImportStatement s1 = new ImportStatement(file.getParentFile(), file.getName(), MONITORS); ImportStatement s2 = new ImportStatement(file.getParentFile(), file.getName(), MONITORS); assertEquals(s1.hashCode(), s2.hashCode()); assertEquals(s1, s2); }
@Override public int hashCode() { int hash = 5; hash = 67 * hash + Objects.hashCode(this.fname_); hash = 67 * hash + Integer.hashCode(this.selector_); return hash; }
ImportStatement implements ConfigStatement { @Override public int hashCode() { int hash = 5; hash = 67 * hash + Objects.hashCode(this.fname_); hash = 67 * hash + Integer.hashCode(this.selector_); return hash; } }
ImportStatement implements ConfigStatement { @Override public int hashCode() { int hash = 5; hash = 67 * hash + Objects.hashCode(this.fname_); hash = 67 * hash + Integer.hashCode(this.selector_); return hash; } ImportStatement(File dir, String fname);  ImportStatement(File dir, String fname, int selector); }
ImportStatement implements ConfigStatement { @Override public int hashCode() { int hash = 5; hash = 67 * hash + Objects.hashCode(this.fname_); hash = 67 * hash + Integer.hashCode(this.selector_); return hash; } ImportStatement(File dir, String fname);  ImportStatement(File dir, String fname, int selector); Configuration read(); File getConfigFile(); @Override StringBuilder configString(); @Override int hashCode(); @Override boolean equals(Object obj); }
ImportStatement implements ConfigStatement { @Override public int hashCode() { int hash = 5; hash = 67 * hash + Objects.hashCode(this.fname_); hash = 67 * hash + Integer.hashCode(this.selector_); return hash; } ImportStatement(File dir, String fname);  ImportStatement(File dir, String fname, int selector); Configuration read(); File getConfigFile(); @Override StringBuilder configString(); @Override int hashCode(); @Override boolean equals(Object obj); final static int CONSTANTS; final static int MONITORS; final static int RULES; final static int ALERTS; final static int ALL; }