当前位置: 首页>>代码示例>>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;未经允许,请勿转载。