title: when should I override Equals function?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1549553/java-always-override-equals">Java: Always override equals?</a>  </p>
  </blockquote>
  
  
  
  <p>should I override <code>equals</code> function for any class that I create? </p>
  
  <p>even for very simple classes which only contains some very simple attributes and by <strong>equals</strong>  I need every single attribute of it to be equal?</p>