Code example for Properties

Methods: hashCode

0
  } 
 
  public int hashCode() 
  { 
    int result;
    result = (properties != null ? properties.hashCode() : 0);
    result = 31 * result + (url != null ? url.hashCode() : 0);
    result = 31 * result + (driver != null ? driver.hashCode() : 0);
    return result;
  } 
 
  public Object getConnectionHash()
  { 
    final ArrayList<Object> hash = new ArrayList<Object>();
    hash.add(getClass().getName());
    hash.add(properties);
    hash.add(url);
    hash.add(driver);
    return hash;
  } 
}