本文整理汇总了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;
}
示例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;
}
示例3: hashCode
import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
return Util.combineHashCodes(this.name.hashCode(), this.parent.hashCode());
}
示例4: hashCode
import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
return Util.combineHashCodes(super.hashCode(), this.sourceStart);
}
示例5: hashCode
import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
return Util.combineHashCodes(super.hashCode(), this.sourceStart);
}
示例6: hashCode
import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
return Util.combineHashCodes(this.name.hashCode(), this.value.hashCode());
}
示例7: hashCode
import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
return Util.combineHashCodes(this.parent.hashCode(), this.nameStart);
}
示例8: hashCode
import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
return Util.combineHashCodes(this.parent.hashCode(), this.occurrenceCount);
}
示例9: hashCode
import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
return Util.combineHashCodes(this.simpleName.hashCode(), this.parent.hashCode());
}
示例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;
}
示例11: hashCode
import org.eclipse.jdt.internal.core.util.Util; //导入方法依赖的package包/类
public int hashCode() {
return Util.combineHashCodes(this.resource.hashCode(), this.parent.hashCode());
}
示例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());
}