Class EntityHelper
java.lang.Object
ch.colabproject.colab.api.model.tools.EntityHelper
Helper to normalize common operations on WithId objects
- Author:
- maxence
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanObject.equals(java.lang.Object)implementation for all WithId implementation.static intObject.hashCode()implementation for all WithId implementation
-
Method Details
-
hashCode
Object.hashCode()implementation for all WithId implementation- Parameters:
object- object to hash- Returns:
- a hash code value for the given object.
-
equals
Object.equals(java.lang.Object)implementation for all WithId implementation. Objects equal if- it's the same reference (strict == equality)
- both are null
- they are instance of the same class and have the same id
- Parameters:
a- first objectb- second object- Returns:
trueif both objects represent the same persisted entity
-