java.util.Vector.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(100)

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

Vector.hashCode介绍

[英]Returns an integer hash code for the receiver. Objects which are equal return the same value for this method.
[中]返回接收器的整数哈希代码。相等的对象对此方法返回相同的值。

代码示例

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

+ ((treeSet == null) ? 0 : treeSet.hashCode());
result = prime * result
    + ((vector == null) ? 0 : vector.hashCode());
return result;

代码示例来源:origin: org.codehaus.plexus/plexus-archiver

/**
 * @see java.lang.Object#hashCode
 */
@Override
public int hashCode()
{
  int hashCode = super.hashCode();
  hashCode += values.hashCode();
  return hashCode;
}

代码示例来源:origin: io.snappydata/gemfire-core

@Override
public synchronized int hashCode() {
 return super.hashCode();
}
@Override

代码示例来源:origin: edu.illinois.cs.cogcomp/saul-examples

@Override
  public int hashCode() {
    int result = sentTokens != null ? sentTokens.hashCode() : 0;
    result = 31 * result + (relations != null ? relations.hashCode() : 0);
    result = 31 * result + sentId;
    result = 31 * result + (entityIndices != null ? entityIndices.hashCode() : 0);
    return result;
  }
}

代码示例来源:origin: org.firebirdsql.jdbc/jaybird-jdk17

public int hashCode() {
  int hashCode = 547;
  hashCode = 37 * hashCode + (name != null ? name.hashCode() : 0);
  hashCode = 37 * hashCode + inputParams.hashCode();
  hashCode = 37 * hashCode + outputParams.hashCode();
  return hashCode;
}

代码示例来源:origin: org.ow2.joram/a3-rt

public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = prime * result + gateway;
 result = prime * result + ((name == null) ? 0 : name.hashCode());
 result = prime * result + ((network == null) ? 0 : network.hashCode());
 result = prime * result + ((servers == null) ? 0 : servers.hashCode());
 return result;
}

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

/** Returns a hash code value for this object.*/
public int hashCode() {
 return Float.floatToIntBits(getBoost())
  ^ Float.floatToIntBits(slop)
  ^ terms.hashCode()
  ^ positions.hashCode();
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * First wait until complete.
 */
public synchronized int hashCode() {
  waitUntilComplete();
  return super.hashCode();
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * @see java.util.Vector#hashCode()
 */
@Override
public int hashCode() {
  return this.getDelegate().hashCode();
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * First wait until complete.
 */
public synchronized int hashCode() {
  waitUntilComplete();
  return super.hashCode();
}

代码示例来源:origin: toplink.essentials/toplink-essentials

/**
 * First wait until complete.
 */
public synchronized int hashCode() {
  waitUntilComplete();
  return super.hashCode();
}

代码示例来源:origin: io.snappydata/gemfire-jgroups

@Override // GemStoneAddition
public int hashCode() { // GemStoneAddition
 int result = 0;
 if (vid != null) {
  result += vid.hashCode();
  if (members != null) {
   result += members.hashCode();
  }
 }
 return result;
}

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

/**
 * Hashcode operator.
 * @return The Hash code.
 **/
public synchronized int hashCode()
{
  if (useCache)
  {
    loadFromStore();
  }
  return delegate.hashCode();
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * @see java.util.Vector#hashCode()
 */
public int hashCode() {
  return this.getDelegate().hashCode();
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * First wait until complete.
 */
public synchronized int hashCode() {
  waitUntilComplete();
  return super.hashCode();
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * @see java.util.Vector#hashCode()
 */
@Override
public int hashCode() {
  return this.getDelegate().hashCode();
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

@Override
public synchronized int hashCode() {
  if (!_directAccess && isDelayLoad()) {
    load();
  }
  return super.hashCode();
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel

@Override
public synchronized int hashCode() {
  if (!_directAccess && isDelayLoad()) {
    load();
  }
  return super.hashCode();
}

代码示例来源:origin: com.phloc/phloc-commons-jdk5

@Override
public synchronized int hashCode () // NOPMD
{
 return HashCodeGenerator.getDerived (super.hashCode ()).append (m_aFactory).getHashCode ();
}

代码示例来源:origin: octo-online/reactive-audit

@Test(expected = ReactiveAuditException.class)
public void hashCodeThis()
{
  ReactiveAudit.off.commit();
  Vector vector=new Vector();
  TestTools.strict.commit();
  vector.hashCode();
}
@Test(expected = ReactiveAuditException.class)

相关文章

微信公众号

最新文章

更多