当前位置: 首页>>代码示例>>Java>>正文


Java Util.combineHashCodes方法代码示例

本文整理汇总了Java中org.eclipse.jdt.internal.core.util.Util.combineHashCodes方法的典型用法代码示例。如果您正苦于以下问题:Java Util.combineHashCodes方法的具体用法?Java Util.combineHashCodes怎么用?Java Util.combineHashCodes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jdt.internal.core.util.Util的用法示例。


在下文中一共展示了Util.combineHashCodes方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
/**
 * @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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:11,代码来源:SourceMethod.java

示例2: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
/**
 * @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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:11,代码来源:BinaryMethod.java

示例3: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
	return Util.combineHashCodes(this.name.hashCode(), this.parent.hashCode());
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:ClassFile.java

示例4: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
	return Util.combineHashCodes(super.hashCode(), this.sourceStart);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:LambdaExpression.java

示例5: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
   return Util.combineHashCodes(super.hashCode(), this.sourceStart);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:LambdaMethod.java

示例6: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
 	return Util.combineHashCodes(this.name.hashCode(), this.value.hashCode());
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:ClasspathAttribute.java

示例7: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
	return Util.combineHashCodes(this.parent.hashCode(), this.nameStart);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:LocalVariable.java

示例8: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
	return Util.combineHashCodes(this.parent.hashCode(), this.occurrenceCount);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:Initializer.java

示例9: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
	return Util.combineHashCodes(this.simpleName.hashCode(), this.parent.hashCode());
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:JarEntryResource.java

示例10: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:7,代码来源:PackageFragment.java

示例11: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
	return Util.combineHashCodes(this.resource.hashCode(), this.parent.hashCode());
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:NonJavaResource.java

示例12: hashCode

import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
/**
 * 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());
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:11,代码来源:JavaElement.java


注:本文中的org.eclipse.jdt.internal.core.util.Util.combineHashCodes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。