java.util.EnumSet.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(77)

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

EnumSet.hashCode介绍

暂无

代码示例

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

@Override
public int hashCode() {
 int result = hashCode;
 return (result == 0) ? hashCode = delegate.hashCode() : result;
}

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

@Override
public int hashCode() {
 int result = hashCode;
 return (result == 0) ? hashCode = delegate.hashCode() : result;
}

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

@Override
public int hashCode() {
 int result = hashCode;
 return (result == 0) ? hashCode = delegate.hashCode() : result;
}

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

@Override
public int hashCode() {
 int result = hashCode;
 return (result == 0) ? hashCode = delegate.hashCode() : result;
}

代码示例来源:origin: org.apache.hadoop/hadoop-common

@Override
public int hashCode() {
 if (value == null)
  return 0;
 return (int) value.hashCode();
}

代码示例来源:origin: mabe02/lanterna

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

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

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((address == null) ? 0 : address.hashCode());
 result = prime * result + (routingTypes.hashCode());
 result = prime * result + (autoCreated ? 1231 : 1237);
 result = prime * result + (requiresResponse ? 1231 : 1237);
 return result;
}

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

@Override
public int hashCode()
{
  final int prime = 31;
  int result = 1;
  result = prime
      * result
      + ((collectionWIthEnumSetV == null) ? 0
          : collectionWIthEnumSetV.hashCode());
  result = prime * result
      + ((enumSet == null) ? 0 : enumSet.hashCode());
  result = prime * result
      + ((expectEnumSet == null) ? 0 : expectEnumSet.hashCode());
  result = prime
      * result
      + ((expectListWithEnumSetV == null) ? 0
          : expectListWithEnumSetV.hashCode());
  result = prime * result + ((name == null) ? 0 : name.hashCode());
  return result;
}

代码示例来源:origin: org.elasticsearch/elasticsearch

@Override
public int hashCode() {
  int result = options.hashCode();
  return 31 * result + expandWildcards.hashCode();
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@Override
public int hashCode()
{
  final int prime = 31;
  int result = 1;
  result = prime * result + ( ( this.attachmentConnections == null ) ? 0 : this.attachmentConnections.hashCode() );
  result = prime * result + ( ( this.cableBusAdjacent == null ) ? 0 : this.cableBusAdjacent.hashCode() );
  result = prime * result + ( ( this.cableColor == null ) ? 0 : this.cableColor.hashCode() );
  result = prime * result + ( ( this.cableType == null ) ? 0 : this.cableType.hashCode() );
  result = prime * result + ( ( this.channelsOnSide == null ) ? 0 : this.channelsOnSide.hashCode() );
  result = prime * result + ( ( this.connectionTypes == null ) ? 0 : this.connectionTypes.hashCode() );
  result = prime * result + ( ( this.coreType == null ) ? 0 : this.coreType.hashCode() );
  result = prime * result + ( ( this.partFlags == null ) ? 0 : this.partFlags.hashCode() );
  return result;
}

代码示例来源:origin: org.weakref/jmxutils

@Override
public int hashCode() {
 int result = hashCode;
 return (result == 0) ? hashCode = delegate.hashCode() : result;
}

代码示例来源:origin: io.hops/hadoop-common

@Override
public int hashCode() {
 if (value == null)
  return 0;
 return (int) value.hashCode();
}

代码示例来源:origin: de.flapdoodle.embed/de.flapdoodle.embed.mongo

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

代码示例来源:origin: edu.ucar/netcdf

public int hashCode() { // unique key, must be different than a plain NetcdfFile, deal with possible different enhancing
  int result = location.hashCode();
  result += 37 * result + enhanceMode.hashCode();
  return result;
 }
}

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs-client

@Override
public int hashCode() {
 return (int) expiryDate ^ keyId ^ (int) blockId ^ modes.hashCode()
   ^ (userId == null ? 0 : userId.hashCode())
   ^ (blockPoolId == null ? 0 : blockPoolId.hashCode())
   ^ (storageTypes == null ? 0 : Arrays.hashCode(storageTypes))
   ^ (storageIds == null ? 0 : Arrays.hashCode(storageIds));
}

代码示例来源:origin: pentaho/pentaho-platform

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

代码示例来源:origin: apache/activemq-artemis

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((address == null) ? 0 : address.hashCode());
 result = prime * result + (routingTypes.hashCode());
 result = prime * result + (autoCreated ? 1231 : 1237);
 result = prime * result + (requiresResponse ? 1231 : 1237);
 return result;
}

代码示例来源:origin: apache/activemq-artemis

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((address == null) ? 0 : address.hashCode());
 result = prime * result + (routingTypes.hashCode());
 result = prime * result + (autoCreated ? 1231 : 1237);
 result = prime * result + (requiresResponse ? 1231 : 1237);
 return result;
}

代码示例来源:origin: apache/activemq-artemis

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((address == null) ? 0 : address.hashCode());
 result = prime * result + (routingTypes.hashCode());
 result = prime * result + (autoCreated ? 1231 : 1237);
 result = prime * result + (requiresResponse ? 1231 : 1237);
 return result;
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((address == null) ? 0 : address.hashCode());
 result = prime * result + (routingTypes.hashCode());
 result = prime * result + (autoCreated ? 1231 : 1237);
 result = prime * result + (requiresResponse ? 1231 : 1237);
 return result;
}

相关文章