本文整理汇总了Java中com.intellij.openapi.util.Comparing.hashcode方法的典型用法代码示例。如果您正苦于以下问题:Java Comparing.hashcode方法的具体用法?Java Comparing.hashcode怎么用?Java Comparing.hashcode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.util.Comparing
的用法示例。
在下文中一共展示了Comparing.hashcode方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: computeHashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
@Override
public int computeHashCode(final PsiElement element) {
if (element == null) return 0;
String text = ApplicationManager.getApplication().runReadAction(new Computable<String>() {
@Override
public String compute() {
PsiElement elementToCompare = element;
if (element instanceof PsiJavaReference) {
PsiElement resolved = ((PsiJavaReference)element).resolve();
if (resolved != null) {
elementToCompare = resolved;
}
}
return elementToCompare instanceof PsiNamedElement ? ((PsiNamedElement)elementToCompare).getName()
: AstBufferUtil.getTextSkippingWhitespaceComments(elementToCompare.getNode());
}
});
return Comparing.hashcode(text);
}
示例2: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Comparing.hashcode(getMainClassName()) ^
Comparing.hashcode(getMethodName()) ^
Comparing.hashcode(getGroupName()) ^
Comparing.hashcode(getSuiteName()) ^
Comparing.hashcode(TEST_OBJECT) ^
Comparing.hashcode(WORKING_DIRECTORY) ^
Comparing.hashcode(OUTPUT_DIRECTORY) ^
Comparing.hashcode(VM_PARAMETERS) ^
Comparing.hashcode(PARAMETERS) ^
Comparing.hashcode(USE_DEFAULT_REPORTERS) ^
Comparing.hashcode(myPatterns);
}
示例3: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
public int hashCode() {
return Comparing.hashcode(TEST_OBJECT) ^
Comparing.hashcode(getMainClassName()) ^
Comparing.hashcode(getPackageName()) ^
Comparing.hashcode(getMethodName()) ^
Comparing.hashcode(getWorkingDirectory()) ^
Comparing.hashcode(VM_PARAMETERS) ^
Comparing.hashcode(PARAMETERS) ^
Comparing.hashcode(myPattern) ^
Comparing.hashcode(FORK_MODE) ^
Comparing.hashcode(DIR_NAME) ^
Comparing.hashcode(CATEGORY_NAME) ^
Comparing.hashcode(REPEAT_MODE) ^
Comparing.hashcode(REPEAT_COUNT);
}
示例4: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
public int hashCode() {
return Comparing.hashcode(myName, myValue);
}
示例5: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Comparing.hashcode(myVersionString);
}
示例6: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
@Override
public int hashCode() {
return 31 * (31 * myPluginId.hashCode() + Comparing.hashcode(myMinVersion)) + Comparing.hashcode(myMaxVersion);
}
示例7: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
public int hashCode() {
return 29 * myName.hashCode() + Comparing.hashcode(myDescription);
}
示例8: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
public int hashCode() {
return Comparing.hashcode(myName) +
Comparing.hashcode(myDescription) +
Comparing.hashcode(myRegExp);
}
示例9: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Comparing.hashcode(myUrl, myFrameworkType);
}
示例10: hashCode
import com.intellij.openapi.util.Comparing; //导入方法依赖的package包/类
@Override
public int hashCode() {
return Comparing.hashcode(getMavenId());
}