本文整理了Java中org.geotools.util.Version.hashCode()
方法的一些代码示例,展示了Version.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.hashCode()
方法的具体详情如下:
包路径:org.geotools.util.Version
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!