Skip to content
  • Home
  • About me
  • myself
  • java
  • linux
  • LaTeX
  • movies
  • Coding
  • C / C++
  • Programming
  • Uncategorized
  • Home
  • About me
  • myself
  • java
  • linux
  • LaTeX
  • movies
  • Coding
  • C / C++
  • Programming
  • Uncategorized

eitch's blog

me geek, you?

Month: November 2012

Java Equals and HashCode by Reflection

Posted on 2012-11-30 by eitch

Writing proper ”equals()” and ”hashCode()” methods A class which is to be used in Maps and Sets must always have their equals() and hashCode() method overridden so that they reflect the data structure of the actual object. This means that the fields of the object which are required for equality must be taken into account… Continue reading “Java Equals and HashCode by Reflection” →

Posted in: java
Theme: Ultra Framework by e-press24.