commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger <li...@sos.purpleshift.com>
Subject HashCodeBuilder.reflectionHashCode() excluding fields ??
Date Thu, 10 Aug 2006 22:06:26 GMT
I have used the commons HashCodeBuilder in many of my bean like 
classes.  Now I want to exclude a field from the hash code but can not 
get the following to work.  Any ideas?

This usage is in accordance with the javadocs.

--- 

public int hashCode()
   {
      String [] excludeFields = { "mField" };

      return HashCodeBuilder.reflectionHashCode(this, excludeFields);
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message