[jboss-cvs] JBossCache/src/org/jboss/cache/marshall ...

Mircea Markus mircea.markus at gmail.com
Sat Feb 10 12:47:03 EST 2007


  User: mmarkus 
  Date: 07/02/10 12:47:03

  Modified:    src/org/jboss/cache/marshall  NodeData.java
  Log:
  JDBCCaheLoader performance improvements. Also added benchmarks for comparisons and backward compatibility  tests
  
  Revision  Changes    Path
  1.3       +22 -1     JBossCache/src/org/jboss/cache/marshall/NodeData.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NodeData.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/marshall/NodeData.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- NodeData.java	17 Jan 2007 14:13:06 -0000	1.2
  +++ NodeData.java	10 Feb 2007 17:47:03 -0000	1.3
  @@ -12,7 +12,7 @@
    * Serializable representation of the data of a node (FQN and attributes)
    *
    * @author Bela Ban
  - * @version $Id: NodeData.java,v 1.2 2007/01/17 14:13:06 msurtani Exp $
  + * @version $Id: NodeData.java,v 1.3 2007/02/10 17:47:03 mmarkus Exp $
    */
   public class NodeData implements Externalizable
   {
  @@ -90,4 +90,25 @@
         return "NodeData {fqn: " + fqn + ", attrs=" + attrs + "}";
      }
   
  +
  +    public boolean equals(Object o)
  +    {
  +        if (this == o) return true;
  +        if (o == null || getClass() != o.getClass()) return false;
  +
  +        NodeData nodeData = (NodeData) o;
  +
  +        if (attrs != null ? !attrs.equals(nodeData.attrs) : nodeData.attrs != null) return false;
  +        if (fqn != null ? !fqn.equals(nodeData.fqn) : nodeData.fqn != null) return false;
  +
  +        return true;
  +    }
  +
  +    public int hashCode()
  +    {
  +        int result;
  +        result = (fqn != null ? fqn.hashCode() : 0);
  +        result = 31 * result + (attrs != null ? attrs.hashCode() : 0);
  +        return result;
  +    }
   }
  
  
  



More information about the jboss-cvs-commits mailing list