@Test public void testHashCode() { Integer id1 = 2; Integer id2 = 2; byte[] value1 = new byte[] {0x00, 0x01, 0x02}; byte[] value2 = new byte[] {0x00, 0x01, 0x02}; J2735RegionalContent j2735RegionalContent1 = new J2735RegionalContent(); J2735RegionalContent j2735RegionalContent2 = new J2735RegionalContent(); assertEquals(j2735RegionalContent1.hashCode(), j2735RegionalContent2.hashCode()); j2735RegionalContent1.setId(id1); assertNotEquals(j2735RegionalContent1.hashCode(), j2735RegionalContent2.hashCode()); j2735RegionalContent2.setId(id2); assertEquals(j2735RegionalContent1.hashCode(), j2735RegionalContent2.hashCode()); j2735RegionalContent1.setValue(value1); assertNotEquals(j2735RegionalContent1.hashCode(), j2735RegionalContent2.hashCode()); j2735RegionalContent2.setValue(value2); assertEquals(j2735RegionalContent1.hashCode(), j2735RegionalContent2.hashCode()); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + Arrays.hashCode(value); return result; }
J2735RegionalContent extends Asn1Object { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + Arrays.hashCode(value); return result; } }
J2735RegionalContent extends Asn1Object { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + Arrays.hashCode(value); return result; }  }
J2735RegionalContent extends Asn1Object { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + Arrays.hashCode(value); return result; }  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 int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + Arrays.hashCode(value); return result; }  Integer getId(); J2735RegionalContent setId(Integer id); byte[] getValue(); J2735RegionalContent setValue(byte[] value); @Override int hashCode(); @Override boolean equals(Object obj);  }