
com.stevewedig.blog.value_objects.ValueMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blog Show documentation
Show all versions of blog Show documentation
Steve Wedig's Libraries for Java 7+
package com.stevewedig.blog.value_objects;
/**
* Mixin for value objects that implements toString(), equals(), and hashCode()
*/
public abstract class ValueMixin extends ObjectMixin {
@Override
protected boolean isEntity() {
return false;
}
@Override
public boolean equals(Object other) {
return objectHelper().classAndStateEquals(other);
}
@Override
public int hashCode() {
return objectHelper().classAndStateHash();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy