title: Java: Automatic equals() and hashCode()
body: <p>Implementing <code>equals()</code> and <code>hashCode()</code> for simple data POJOs is cluttering my code and maintaining is tedious.</p>
  <p>What are the libraries handling this automatically?<br />
  I prefer bytecode instrumentation over AOP approach due to performance reasons.</p>
  <p><strong>Update:</strong> The topic of the necessity of implementing equals() and hashCode() has been discussed, here's my point:</p>
  <p>Isn't it better to have it done right upfront with minimal effort rather than digging in the code, adding hC/eq when it comes to it?</p>
  <p><strong>Edit 2022:</strong> I have switched to Kotlin. Kotlin takes care of most of Java's boilerplate, see this page for the case of <code>equals()</code>: <a href="https://tedblob.com/kotlin-data-class/" rel="nofollow noreferrer">https://tedblob.com/kotlin-data-class/</a></p>