@Test public void testEquals() { Integer id = 2; Integer id2 = 3; byte[] value = new byte[] {0x00, 0x01, 0x02}; J2735RegionalContent j2735RegionalContent1 = new J2735RegionalContent(); J2735RegionalContent j2735RegionalContent2 = new J2735RegionalContent(); assertTrue(j2735RegionalContent1.equals(j2735RegionalContent1)); assertFalse(j2735RegionalContent1.equals(null)); assertFalse(j2735RegionalContent1.equals(new Object())); assertTrue(j2735RegionalContent1.equals(j2735RegionalContent2)); j2735RegionalContent1.setId(null); j2735RegionalContent2.setId(id2); assertFalse(j2735RegionalContent1.equals(j2735RegionalContent2)); j2735RegionalContent1.setId(id); assertFalse(j2735RegionalContent1.equals(j2735RegionalContent2)); j2735RegionalContent2.setId(id); assertTrue(j2735RegionalContent1.equals(j2735RegionalContent2)); j2735RegionalContent1.setValue(value); assertFalse(j2735RegionalContent1.equals(j2735RegionalContent2)); j2735RegionalContent2.setValue(value); assertTrue(j2735RegionalContent1.equals(j2735RegionalContent2)); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; J2735RegionalContent other = (J2735RegionalContent) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (!Arrays.equals(value, other.value)) return false; return true; }
J2735RegionalContent extends Asn1Object { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; J2735RegionalContent other = (J2735RegionalContent) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (!Arrays.equals(value, other.value)) return false; return true; } }
J2735RegionalContent extends Asn1Object { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; J2735RegionalContent other = (J2735RegionalContent) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (!Arrays.equals(value, other.value)) return false; return true; }  }
J2735RegionalContent extends Asn1Object { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; J2735RegionalContent other = (J2735RegionalContent) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (!Arrays.equals(value, other.value)) return false; return true; }  Integer getId(); J2735RegionalContent setId(Integer id); byte[] getValue(); J2735RegionalContent setValue(byte[] value); @Override int hashCode(); @Override boolean equals(Object obj); }
J2735RegionalContent extends Asn1Object { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; J2735RegionalContent other = (J2735RegionalContent) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (!Arrays.equals(value, other.value)) return false; return true; }  Integer getId(); J2735RegionalContent setId(Integer id); byte[] getValue(); J2735RegionalContent setValue(byte[] value); @Override int hashCode(); @Override boolean equals(Object obj);  }