org.springframework.data.domain.Sort.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(203)

本文整理了Java中org.springframework.data.domain.Sort.hashCode()方法的一些代码示例,展示了Sort.hashCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sort.hashCode()方法的具体详情如下:
包路径:org.springframework.data.domain.Sort
类名称:Sort
方法名:hashCode

Sort.hashCode介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-data-solr

  1. @Override
  2. public int hashCode() {
  3. int result = sort.hashCode();
  4. result = 31 * result + page;
  5. result = 31 * result + (int) (size ^ (size >>> 32));
  6. return result;
  7. }

代码示例来源:origin: org.springframework.data/spring-data-commons-core

  1. @Override
  2. public int hashCode() {
  3. int result = 17;
  4. result = 31 * result + page;
  5. result = 31 * result + size;
  6. result = 31 * result + (null == sort ? 0 : sort.hashCode());
  7. return result;
  8. }
  9. }

代码示例来源:origin: apache/servicemix-bundles

  1. @Override
  2. public int hashCode() {
  3. return 31 * super.hashCode() + sort.hashCode();
  4. }

代码示例来源:origin: com.blazebit/blaze-persistence-integration-spring-data-base

  1. @Override
  2. public int hashCode() {
  3. int result = getKeysetPage() != null ? getKeysetPage().hashCode() : 0;
  4. result = 31 * result + (getSort() != null ? getSort().hashCode() : 0);
  5. result = 31 * result + getIntOffset();
  6. result = 31 * result + getPageSize();
  7. return result;
  8. }
  9. }

代码示例来源:origin: Blazebit/blaze-persistence

  1. @Override
  2. public int hashCode() {
  3. int result = getKeysetPage() != null ? getKeysetPage().hashCode() : 0;
  4. result = 31 * result + (getSort() != null ? getSort().hashCode() : 0);
  5. result = 31 * result + getIntOffset();
  6. result = 31 * result + getPageSize();
  7. return result;
  8. }
  9. }

相关文章