當前位置: 首頁>>代碼示例>>Java>>正文


Java Comparing.hashcode方法代碼示例

本文整理匯總了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);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:20,代碼來源:SliceLeafAnalyzer.java

示例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);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:15,代碼來源:TestData.java

示例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);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:16,代碼來源:JUnitConfiguration.java

示例4: hashCode

import com.intellij.openapi.util.Comparing; //導入方法依賴的package包/類
public int hashCode() {
  return Comparing.hashcode(myName, myValue);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:AppletConfiguration.java

示例5: hashCode

import com.intellij.openapi.util.Comparing; //導入方法依賴的package包/類
@Override
public int hashCode() {
  return Comparing.hashcode(myVersionString);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:LibraryVersionProperties.java

示例6: hashCode

import com.intellij.openapi.util.Comparing; //導入方法依賴的package包/類
@Override
public int hashCode() {
  return 31 * (31 * myPluginId.hashCode() + Comparing.hashcode(myMinVersion)) + Comparing.hashcode(myMaxVersion);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:DependencyOnPlugin.java

示例7: hashCode

import com.intellij.openapi.util.Comparing; //導入方法依賴的package包/類
public int hashCode() {
  return 29 * myName.hashCode() + Comparing.hashcode(myDescription);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:QuickList.java

示例8: hashCode

import com.intellij.openapi.util.Comparing; //導入方法依賴的package包/類
public int hashCode() {
  return Comparing.hashcode(myName) +
         Comparing.hashcode(myDescription) +
         Comparing.hashcode(myRegExp);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:FilterInfo.java

示例9: hashCode

import com.intellij.openapi.util.Comparing; //導入方法依賴的package包/類
@Override
public int hashCode() {
  return Comparing.hashcode(myUrl, myFrameworkType);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:ExcludedFileState.java

示例10: hashCode

import com.intellij.openapi.util.Comparing; //導入方法依賴的package包/類
@Override
public int hashCode() {
  return Comparing.hashcode(getMavenId());
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:RepositoryLibraryProperties.java


注:本文中的com.intellij.openapi.util.Comparing.hashcode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。