Java Hash Code Calculate hashCode(Object o1, Object o2)

Here you can find the source of hashCode(Object o1, Object o2)

Description

hash Code

License

Open Source License

Declaration

public static int hashCode(Object o1, Object o2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int hashCode(Object o1, Object o2) {
        int hash = 7;
        if (o1 != null)
            hash = 29 * hash + o1.hashCode();
        if (o2 != null)
            hash = 29 * hash + o2.hashCode();
        return hash;
    }/*w ww  .j a  v a 2  s  . c o m*/
}

Related

  1. hashCode(Object a)
  2. hashCode(Object array)
  3. hashCode(Object o)
  4. hashCode(Object o)
  5. hashCode(Object o)
  6. hashCode(Object obj)
  7. hashCode(Object obj)
  8. hashcode(Object obj)
  9. hashCode(Object obj)