org.geotools.util.Version.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(119)

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

Version.hashCode介绍

[英]The hash code value. Will be computed when first needed.
[中]哈希代码值。将在第一次需要时计算。

代码示例

代码示例来源:origin: geoserver/geoserver

public int hashCode() {
  int result = 0;
  result = id.hashCode();
  if (version != null) {
    result = (result * 17) + version.hashCode();
  }
  result = (result * 17) + operations.hashCode();
  return result;
}

代码示例来源:origin: geoserver/geoserver

public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((filename == null) ? 0 : filename.hashCode());
  result = prime * result + ((id == null) ? 0 : id.hashCode());
  result = prime * result + ((name == null) ? 0 : name.hashCode());
  result = prime * result + ((workspace == null) ? 0 : workspace.hashCode());
  result = prime * result + ((format == null) ? 0 : format.hashCode());
  result = prime * result + ((languageVersion == null) ? 0 : languageVersion.hashCode());
  return result;
}

代码示例来源:origin: org.geoserver/platform

public int hashCode() {
  int result = 0;
  result = id.hashCode();
  if (version != null) {
    result = (result * 17) + version.hashCode();
  }
  return result;
}

相关文章