@Test public void notEqualsOtherDifferentMfgCode() { final ProdData a = new ProdData( code, name, version, os_code, mfg_code, language, app_type); final ProdData b = new ProdData( code, name, version, os_code, "gammy anded", language, app_type); assertFalse(a.equals(b)); assertFalse(b.equals(a)); }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ProdData)) return false; final ProdData d = (ProdData) o; return code == d.code && name.equals(d.name) && version.equals(d.version) && os_code.equals(d.os_code) && mfg_code.equals(d.mfg_code) && language.equals(d.language) && app_type.equals(d.app_type); }
ProdData { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ProdData)) return false; final ProdData d = (ProdData) o; return code == d.code && name.equals(d.name) && version.equals(d.version) && os_code.equals(d.os_code) && mfg_code.equals(d.mfg_code) && language.equals(d.language) && app_type.equals(d.app_type); } }
ProdData { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ProdData)) return false; final ProdData d = (ProdData) o; return code == d.code && name.equals(d.name) && version.equals(d.version) && os_code.equals(d.os_code) && mfg_code.equals(d.mfg_code) && language.equals(d.language) && app_type.equals(d.app_type); } ProdData(int code, String name, String version, String os_code,
                  String mfg_code, String language, String app_type); }
ProdData { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ProdData)) return false; final ProdData d = (ProdData) o; return code == d.code && name.equals(d.name) && version.equals(d.version) && os_code.equals(d.os_code) && mfg_code.equals(d.mfg_code) && language.equals(d.language) && app_type.equals(d.app_type); } ProdData(int code, String name, String version, String os_code,
                  String mfg_code, String language, String app_type); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
ProdData { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ProdData)) return false; final ProdData d = (ProdData) o; return code == d.code && name.equals(d.name) && version.equals(d.version) && os_code.equals(d.os_code) && mfg_code.equals(d.mfg_code) && language.equals(d.language) && app_type.equals(d.app_type); } ProdData(int code, String name, String version, String os_code,
                  String mfg_code, String language, String app_type); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); final int code; final String name; final String version; final String os_code; final String mfg_code; final String language; final String app_type; }