@Test public void testHash() { assertEquals(getTestObject().hashCode(), getTestObject().hashCode()); AttributeTypeDef testObject = getTestObject(); AttributeTypeDef anotherObject = getTestObject(); anotherObject.setGUID("DifferentGUID"); assertNotEquals(testObject.hashCode(), anotherObject.hashCode()); }
@Override public int hashCode() { return Objects.hash(super.hashCode(), primitiveDefCategory); }
PrimitiveDef extends AttributeTypeDef { @Override public int hashCode() { return Objects.hash(super.hashCode(), primitiveDefCategory); } }
PrimitiveDef extends AttributeTypeDef { @Override public int hashCode() { return Objects.hash(super.hashCode(), primitiveDefCategory); } PrimitiveDef();  PrimitiveDef(PrimitiveDefCategory  primitiveDefCategory);  PrimitiveDef(PrimitiveDef template); }
PrimitiveDef extends AttributeTypeDef { @Override public int hashCode() { return Objects.hash(super.hashCode(), primitiveDefCategory); } PrimitiveDef();  PrimitiveDef(PrimitiveDefCategory  primitiveDefCategory);  PrimitiveDef(PrimitiveDef template); AttributeTypeDef cloneFromSubclass(); PrimitiveDefCategory getPrimitiveDefCategory(); void setPrimitiveDefCategory(PrimitiveDefCategory primitiveDefCategory); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
PrimitiveDef extends AttributeTypeDef { @Override public int hashCode() { return Objects.hash(super.hashCode(), primitiveDefCategory); } PrimitiveDef();  PrimitiveDef(PrimitiveDefCategory  primitiveDefCategory);  PrimitiveDef(PrimitiveDef template); AttributeTypeDef cloneFromSubclass(); PrimitiveDefCategory getPrimitiveDefCategory(); void setPrimitiveDefCategory(PrimitiveDefCategory primitiveDefCategory); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }