java.nio.charset.Charset.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(136)

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

Charset.hashCode介绍

[英]Gets the hash code of this charset.
[中]获取此字符集的哈希代码。

代码示例

代码示例来源:origin: google/guava

@Override
public int hashCode() {
 return StringCharsetFunnel.class.hashCode() ^ charset.hashCode();
}

代码示例来源:origin: prestodb/presto

@Override
public int hashCode() {
 return StringCharsetFunnel.class.hashCode() ^ charset.hashCode();
}

代码示例来源:origin: prestodb/presto

@Override public int hashCode() {
 int result = 29;
 result = 31 * result + realm.hashCode();
 result = 31 * result + scheme.hashCode();
 result = 31 * result + charset.hashCode();
 return result;
}

代码示例来源:origin: google/j2objc

@Override
public int hashCode() {
 return StringCharsetFunnel.class.hashCode() ^ charset.hashCode();
}

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

@Override
public int hashCode() {
 return StringCharsetFunnel.class.hashCode() ^ charset.hashCode();
}

代码示例来源:origin: wiztools/rest-client

@Override
public int hashCode() {
  int hash = 7;
  hash = 37 * hash + (this.contentType != null ? this.contentType.hashCode() : 0);
  hash = 37 * hash + (this.charset != null ? this.charset.hashCode() : 0);
  return hash;
}

代码示例来源:origin: looly/hutool

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((charset == null) ? 0 : charset.hashCode());
  result = prime * result + ((path == null) ? 0 : path.hashCode());
  result = prime * result + ((resourceMode == null) ? 0 : resourceMode.hashCode());
  return result;
}

代码示例来源:origin: looly/hutool

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((charset == null) ? 0 : charset.hashCode());
  result = prime * result + ((groupedMap == null) ? 0 : groupedMap.hashCode());
  result = prime * result + (isUseVariable ? 1231 : 1237);
  result = prime * result + ((settingUrl == null) ? 0 : settingUrl.hashCode());
  return result;
}

代码示例来源:origin: looly/hutool

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((charset == null) ? 0 : charset.hashCode());
  result = prime * result + ((path == null) ? 0 : path.hashCode());
  result = prime * result + ((resourceMode == null) ? 0 : resourceMode.hashCode());
  return result;
}

代码示例来源:origin: looly/hutool

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((charset == null) ? 0 : charset.hashCode());
  result = prime * result + ((groupedMap == null) ? 0 : groupedMap.hashCode());
  result = prime * result + (isUseVariable ? 1231 : 1237);
  result = prime * result + ((settingUrl == null) ? 0 : settingUrl.hashCode());
  return result;
}

代码示例来源:origin: webx/citrus

@Override
public int hashCode() {
  return charset.hashCode() * 31 + locale.hashCode();
}

代码示例来源:origin: webx/citrus

@Override
public int hashCode() {
  return charset.hashCode() * 31 + locale.hashCode();
}

代码示例来源:origin: webx/citrus

@Override
public int hashCode() {
  return charset.hashCode() * 31 + locale.hashCode();
}

代码示例来源:origin: diffplug/spotless

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + encoding.hashCode();
  result = prime * result + lineEndingsPolicy.hashCode();
  result = prime * result + rootDir.hashCode();
  result = prime * result + steps.hashCode();
  result = prime * result + exceptionPolicy.hashCode();
  return result;
}

代码示例来源:origin: sitemesh/sitemesh3

@Override
public int hashCode() {
  int result = rootDir != null ? rootDir.hashCode() : 0;
  result = 31 * result + (encoding != null ? encoding.hashCode() : 0);
  return result;
}

代码示例来源:origin: io.prestosql/presto-jdbc

@Override public int hashCode() {
 int result = 29;
 result = 31 * result + realm.hashCode();
 result = 31 * result + scheme.hashCode();
 result = 31 * result + charset.hashCode();
 return result;
}

代码示例来源:origin: org.apache.marmotta/marmotta-commons

@Override
public int hashCode() {
  int result = type.hashCode();
  result = 31 * result + subtype.hashCode();
  result = 31 * result + charset.hashCode();
  result = 31 * result + parameters.hashCode();
  return result;
}

代码示例来源:origin: grundid/nfctools

@Override
public int hashCode() {
  final int prime = 31;
  int result = super.hashCode();
  result = prime * result + ((charset == null) ? 0 : charset.hashCode());
  result = prime * result + ((content == null) ? 0 : content.hashCode());
  return result;
}

代码示例来源:origin: org.ec4j.maven/ec4j-lint-api

/** {@inheritDoc} */
@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((encoding == null) ? 0 : encoding.hashCode());
  result = prime * result + ((absPath == null) ? 0 : absPath.hashCode());
  return result;
}

代码示例来源:origin: cn.hutool/hutool-all

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((charset == null) ? 0 : charset.hashCode());
  result = prime * result + ((path == null) ? 0 : path.hashCode());
  result = prime * result + ((resourceMode == null) ? 0 : resourceMode.hashCode());
  return result;
}

相关文章