本文整理匯總了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());
}