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

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

本文整理了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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1. /**
  2. * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
  3. */
  4. @Override
  5. public int hashCode() {
  6. int hash = super.hashCode();
  7. for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
  8. hash = Util.combineHashCodes(hash, this.parameterTypes[i].hashCode());
  9. }
  10. return hash;
  11. }
  12. /**

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

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

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

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

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

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

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

  1. /**
  2. * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
  3. */
  4. public int hashCode() {
  5. int hash = super.hashCode();
  6. for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
  7. hash = Util.combineHashCodes(hash, this.parameterTypes[i].hashCode());
  8. }
  9. return hash;
  10. }
  11. /**

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

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

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

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

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

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

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

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

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

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

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

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

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

  1. /**
  2. * @see org.eclipse.jdt.internal.core.JavaElement#hashCode()
  3. */
  4. public int hashCode() {
  5. int hash = super.hashCode();
  6. for (int i = 0, length = this.parameterTypes.length; i < length; i++) {
  7. hash = Util.combineHashCodes(hash, getErasedParameterType(i).hashCode());
  8. }
  9. return hash;
  10. }
  11. /*

相关文章

Util类方法