@Test public void testEquals() { assertTrue(SPV1.equals(SPV1)); assertTrue(SPV1.equals(SPV2)); assertFalse(SPV1.equals(SPV3)); assertFalse(SPV1.equals(SPV4)); assertFalse(SPV1.equals(SPV5)); assertFalse(SPV1.equals(SPV6)); assertFalse(SPV1.equals(SPV7)); assertFalse(SPV1.equals(SPV8)); assertTrue(SPV2.equals(SPV1)); assertTrue(SPV2.equals(SPV2)); assertFalse(SPV2.equals(SPV3)); assertFalse(SPV2.equals(SPV4)); assertFalse(SPV2.equals(SPV5)); assertFalse(SPV2.equals(SPV6)); assertFalse(SPV2.equals(SPV7)); assertFalse(SPV2.equals(SPV8)); assertFalse(SPV3.equals(SPV1)); assertFalse(SPV3.equals(SPV2)); assertTrue(SPV3.equals(SPV3)); assertFalse(SPV3.equals(SPV4)); assertFalse(SPV3.equals(SPV5)); assertFalse(SPV3.equals(SPV6)); assertFalse(SPV3.equals(SPV7)); assertFalse(SPV3.equals(SPV8)); assertFalse(SPV4.equals(SPV1)); assertFalse(SPV4.equals(SPV2)); assertFalse(SPV4.equals(SPV3)); assertTrue(SPV4.equals(SPV4)); assertFalse(SPV4.equals(SPV5)); assertFalse(SPV4.equals(SPV6)); assertFalse(SPV4.equals(SPV7)); assertFalse(SPV4.equals(SPV8)); assertFalse(SPV5.equals(SPV1)); assertFalse(SPV5.equals(SPV2)); assertFalse(SPV5.equals(SPV3)); assertFalse(SPV5.equals(SPV4)); assertTrue(SPV5.equals(SPV5)); assertTrue(SPV5.equals(SPV6)); assertFalse(SPV5.equals(SPV7)); assertFalse(SPV5.equals(SPV8)); assertFalse(SPV1.equals(null)); }
@Override public boolean equals(Object obj) { boolean basicPropsEq = false; if (obj instanceof PropertyValue) { PropertyValue other = (PropertyValue)obj; if (property == other.property) { if (value != null && other.value != null) { basicPropsEq = (value.equals(other.value)); } else if (value == null && other.value == null) { basicPropsEq = true; } } } return basicPropsEq; }
PropertyValue { @Override public boolean equals(Object obj) { boolean basicPropsEq = false; if (obj instanceof PropertyValue) { PropertyValue other = (PropertyValue)obj; if (property == other.property) { if (value != null && other.value != null) { basicPropsEq = (value.equals(other.value)); } else if (value == null && other.value == null) { basicPropsEq = true; } } } return basicPropsEq; } }
PropertyValue { @Override public boolean equals(Object obj) { boolean basicPropsEq = false; if (obj instanceof PropertyValue) { PropertyValue other = (PropertyValue)obj; if (property == other.property) { if (value != null && other.value != null) { basicPropsEq = (value.equals(other.value)); } else if (value == null && other.value == null) { basicPropsEq = true; } } } return basicPropsEq; } PropertyValue(Property<T> prop, T value); }
PropertyValue { @Override public boolean equals(Object obj) { boolean basicPropsEq = false; if (obj instanceof PropertyValue) { PropertyValue other = (PropertyValue)obj; if (property == other.property) { if (value != null && other.value != null) { basicPropsEq = (value.equals(other.value)); } else if (value == null && other.value == null) { basicPropsEq = true; } } } return basicPropsEq; } PropertyValue(Property<T> prop, T value); @Override boolean equals(Object obj); @Override int hashCode(); Property<T> getProperty(); T getValue(); }
PropertyValue { @Override public boolean equals(Object obj) { boolean basicPropsEq = false; if (obj instanceof PropertyValue) { PropertyValue other = (PropertyValue)obj; if (property == other.property) { if (value != null && other.value != null) { basicPropsEq = (value.equals(other.value)); } else if (value == null && other.value == null) { basicPropsEq = true; } } } return basicPropsEq; } PropertyValue(Property<T> prop, T value); @Override boolean equals(Object obj); @Override int hashCode(); Property<T> getProperty(); T getValue();  }