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

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

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

Hashtable.hashCode介绍

[英]Returns the hash code value for this Map as per the definition in the Map interface.
[中]根据映射接口中的定义返回此映射的哈希代码值。

代码示例

代码示例来源:origin: apache/groovy

public synchronized int hashCode() {
  return project.getProperties().hashCode();
}

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

+ ((hashMap == null) ? 0 : hashMap.hashCode());
result = prime * result
    + ((hashtable == null) ? 0 : hashtable.hashCode());
result = prime

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

+ ((hashMap == null) ? 0 : hashMap.hashCode());
result = prime * result
    + ((hashTable == null) ? 0 : hashTable.hashCode());
result = prime

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

/**
 * @see java.lang.Object#hashCode
 */
@Override
public int hashCode()
{
  int hashCode = 0;
  if ( name != null )
  {
    hashCode += name.hashCode();
  }
  hashCode += attributes.hashCode();
  return hashCode;
}

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

public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = prime * result + ((domains == null) ? 0 : domains.hashCode());
 result = prime * result + ((properties == null) ? 0 : properties.hashCode());
 result = prime * result + ((servers == null) ? 0 : servers.hashCode());
 result = prime * result + ((clusters == null) ? 0 : clusters.hashCode());
 return result;
}

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

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

代码示例来源:origin: org.glassfish.main.persistence.cmp/cmp-utility

/**
 * @return the hash code value for this map
 */
public int hashCode() {
  int h = 0;
  for (int i = 0; i < bucketSize; i++) {
    h += hashtables[i].hashCode();
  }
  return h;
}

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

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

代码示例来源:origin: Turkcell/TurkcellUpdater_android_sdk

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result
      + ((languageCode == null) ? 0 : languageCode.hashCode());
  result = prime * result + ((map == null) ? 0 : map.hashCode());
  return result;
}

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

public int hashCode() {
  int result = super.hashCode();
  result = 31 * result + resolver.hashCode();
  return result;
}

代码示例来源:origin: org.openxri/openxri-client

public int hashCode() {
  int h = 1;
  if (this.tag != null) h *= this.tag.hashCode();
  if (this.value != null) h *= this.value.hashCode();
  if (this.attributes != null) h *= this.attributes.hashCode();
  return(h);
}

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

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

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

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

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

/**
 * @see java.util.Hashtable#hashCode()
 */
public synchronized int hashCode() {
  return this.getDelegate().hashCode();
}

代码示例来源:origin: apache/servicemix-bundles

public int hashCode()
{
  if (tags == null) {
    tags = new Hashtable<String,Object>();
    copyToHashtable();
  }
  return tags.hashCode();
}

代码示例来源:origin: tomj74/chunk-templates

public int hashCode()
{
  if (tags == null) {
    tags = new Hashtable<String,Object>();
    copyToHashtable();
  }
  return tags.hashCode();
}

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

public synchronized int hashCode() {
  return project.getProperties().hashCode();
}

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

/**
 * @see java.util.Hashtable#hashCode()
 */
public synchronized int hashCode() {
  return this.getDelegate().hashCode();
}

代码示例来源:origin: com.x5dev/chunk-templates

public int hashCode()
{
  if (tags == null) {
    tags = new Hashtable<String,Object>();
    copyToHashtable();
  }
  return tags.hashCode();
}

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

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

相关文章