org.intermine.metadata.Util.hashCode()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(169)

本文整理了Java中org.intermine.metadata.Util.hashCode()方法的一些代码示例,展示了Util.hashCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.hashCode()方法的具体详情如下:
包路径:org.intermine.metadata.Util
类名称:Util
方法名:hashCode

Util.hashCode介绍

[英]Return a zero hashCode if the object is null, otherwise return the real hashCode
[中]如果对象为空,则返回零哈希代码,否则返回实际哈希代码

代码示例

代码示例来源:origin: org.intermine/intermine-objectstore

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  return 2 * queryString.hashCode()
    + 3 * Util.hashCode(packageName)
    + 5 * Util.hashCode(parameters);
}

代码示例来源:origin: intermine/intermine

/**
 * Get the hashCode for this object
 *
 * @return the hashCode
 */
@Override
public int hashCode() {
  return qc1.hashCode()
    + 3 * op.hashCode()
    + 5 * Util.hashCode(qc2)
    + 7 * Util.hashCode(obj);
}

代码示例来源:origin: intermine/intermine

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  return 2 * queryString.hashCode()
    + 3 * Util.hashCode(packageName)
    + 5 * Util.hashCode(parameters);
}

代码示例来源:origin: org.intermine/intermine-objectstore

/**
 * Get the hashCode for this object
 *
 * @return the hashCode
 */
@Override
public int hashCode() {
  return qc1.hashCode()
    + 3 * op.hashCode()
    + 5 * Util.hashCode(qc2)
    + 7 * Util.hashCode(obj);
}

代码示例来源:origin: org.intermine/intermine-objectstore

/**
 * Get the hashCode for this object overrides Object.hashCode()
 *
 * @return the hashCode
 */
@Override
public int hashCode() {
  return subquery.hashCode()
    + 3 * op.hashCode()
    + 7 * Util.hashCode(qe)
    + 11 * Util.hashCode(cls);
}

代码示例来源:origin: intermine/intermine

/**
 * Get the hashCode for this object overrides Object.hashCode()
 *
 * @return the hashCode
 */
@Override
public int hashCode() {
  return subquery.hashCode()
    + 3 * op.hashCode()
    + 7 * Util.hashCode(qe)
    + 11 * Util.hashCode(cls);
}

代码示例来源:origin: intermine/intermine

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  return 3 * name.hashCode()
    + 7 * referencedType.hashCode()
    + 11 * Util.hashCode(reverseRefName);
}

代码示例来源:origin: org.intermine/intermine-objectstore

/**
 * Get the hashCode for this object overrides Object.hashCode()
 *
 * @return the hashCode
 */
@Override
public int hashCode() {
  return qe1.hashCode()
    + 3 * op.hashCode()
    + 7 * Util.hashCode(qe2);
}

代码示例来源:origin: org.intermine/intermine-model

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  return 3 * name.hashCode()
    + 7 * referencedType.hashCode()
    + 11 * Util.hashCode(reverseRefName);
}

代码示例来源:origin: intermine/intermine

/**
 * Get the hashCode for this object overrides Object.hashCode()
 *
 * @return the hashCode
 */
@Override
public int hashCode() {
  return qe1.hashCode()
    + 3 * op.hashCode()
    + 7 * Util.hashCode(qe2);
}

代码示例来源:origin: org.intermine/intermine-model

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  return 2 * (cld == null ? 0 : cld.getName().hashCode())
    + 3 * name.hashCode()
    + 7 * referencedType.hashCode()
    + 11 * Util.hashCode(reverseRefName);
}

代码示例来源:origin: intermine/intermine

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  return 2 * (cld == null ? 0 : cld.getName().hashCode())
    + 3 * name.hashCode()
    + 7 * referencedType.hashCode()
    + 11 * Util.hashCode(reverseRefName);
}

代码示例来源:origin: intermine/intermine

public void testHashCode() {
  assertTrue(org.intermine.metadata.Util.hashCode(null) == 0);
  assertTrue(org.intermine.metadata.Util.hashCode(new Integer(10)) != 0);
}

代码示例来源:origin: intermine/intermine

public void testHashCode() {
  assertTrue(org.intermine.metadata.Util.hashCode(null) == 0);
  assertTrue(org.intermine.metadata.Util.hashCode(new Integer(10)) != 0);
}

相关文章