org.eclipse.jdt.internal.core.util.Util.combineHashCodes()方法的使用及代码示例

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

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

Util.combineHashCodes介绍

[英]Combines two hash codes to make a new one.
[中]将两个哈希代码组合成一个新的哈希代码。

代码示例

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

private int hashCode(Object[] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, element[i].hashCode());
  return hash & 0x7FFFFFFF;
}

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

private int hashCode(Object[] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, element[i].hashCode());
  return hash & 0x7FFFFFFF;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

private int hashCode(Object[] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, element[i].hashCode());
  return hash & 0x7FFFFFFF;
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

private int hashCode(Object[] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, element[i].hashCode());
  return hash & 0x7FFFFFFF;
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

private int hashCode(Object[] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, element[i].hashCode());
  return hash & 0x7FFFFFFF;
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

private int hashCode(Object[] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, element[i].hashCode());
  return hash & 0x7FFFFFFF;
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

private int hashCode(Object[] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, element[i].hashCode());
  return hash & 0x7FFFFFFF;
}

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

private int hashCode(Object[] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, element[i].hashCode());
  return hash & 0x7FFFFFFF;
}

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

/**
 * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
 */
@Override
public int hashCode() {
  int hash = super.hashCode();
  for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
    hash = Util.combineHashCodes(hash, this.parameterTypes[i].hashCode());
  }
  return hash;
}
/**

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

@Override
public int hashCode() {
  return Util.combineHashCodes(this.name.hashCode(), this.parent.hashCode());
}
/**

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

private int hashCode(char[][] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, CharOperation.hashCode(element[i]));
  return hash & 0x7FFFFFFF;
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

private int hashCode(char[][] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, CharOperation.hashCode(element[i]));
  return hash & 0x7FFFFFFF;
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

/**
 * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
 */
public int hashCode() {
  int hash = super.hashCode();
  for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
    hash = Util.combineHashCodes(hash, this.parameterTypes[i].hashCode());
  }
  return hash;
}
/**

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public int hashCode() {
  int hash = this.parent.hashCode();
  for (int i = 0, length = this.names.length; i < length; i++)
    hash = Util.combineHashCodes(this.names[i].hashCode(), hash);
  return hash;
}
/**

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

private int hashCode(char[][] element, int length) {
  int hash = 0;
  for (int i = length-1; i >= 0; i--)
    hash = Util.combineHashCodes(hash, CharOperation.hashCode(element[i]));
  return hash & 0x7FFFFFFF;
}

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

/**
 * Returns the hash code for this Java element. By default,
 * the hash code for an element is a combination of its name
 * and parent's hash code. Elements with other requirements must
 * override this method.
 */
public int hashCode() {
  if (this.parent == null) return super.hashCode();
  return Util.combineHashCodes(getElementName().hashCode(), this.parent.hashCode());
}
/**

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

/**
 * Returns the hash code for this Java element. By default,
 * the hash code for an element is a combination of its name
 * and parent's hash code. Elements with other requirements must
 * override this method.
 */
public int hashCode() {
  if (this.parent == null) return super.hashCode();
  return Util.combineHashCodes(getElementName().hashCode(), this.parent.hashCode());
}
/**

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

/**
 * Returns the hash code for this Java element. By default,
 * the hash code for an element is a combination of its name
 * and parent's hash code. Elements with other requirements must
 * override this method.
 */
public int hashCode() {
  if (this.parent == null) return super.hashCode();
  return Util.combineHashCodes(getElementName().hashCode(), this.parent.hashCode());
}
/**

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

/**
 * Returns the hash code for this Java element. By default,
 * the hash code for an element is a combination of its name
 * and parent's hash code. Elements with other requirements must
 * override this method.
 */
@Override
public int hashCode() {
  if (this.parent == null) return super.hashCode();
  return Util.combineHashCodes(getElementName().hashCode(), this.parent.hashCode());
}
/**

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

/**
 * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
 */
public int hashCode() {
  int hash = super.hashCode();
  for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
    hash = Util.combineHashCodes(hash, getErasedParameterType(i).hashCode());
  }
  return hash;
}
/*

相关文章

微信公众号

最新文章

更多

Util类方法