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

x33g5p2x  于2022-01-16 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(111)

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

Properties.hashCode介绍

暂无

代码示例

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

@Override
public int hashCode() {
  return checksumProperties != null ? checksumProperties.hashCode() : 0;
}

代码示例来源:origin: apache/hive

@Override
public synchronized int hashCode() {
 if (interned != null) return interned.hashCode();
 else return super.hashCode();
}

代码示例来源:origin: apache/drill

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

代码示例来源:origin: alibaba/TProfiler

public int hashCode() {
 return delegate.hashCode();
}

代码示例来源:origin: apache/geode

@Override
public int hashCode() {
 return props.hashCode();
}

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

@Override
public final synchronized int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: apache/incubator-gobblin

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

代码示例来源:origin: apache/maven

/**
 * Method hashCode.
 * 
 * @return int
 */
public int hashCode()
{
  int result = 17;
  result = 37 * result + ( type != null ? type.hashCode() : 0 );
  result = 37 * result + ( provides != null ? provides.hashCode() : 0 );
  return result;
} //-- int hashCode()

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

@Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), linkMap);
  }
}

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

@Override
public synchronized int hashCode() {
 super.putAll( storageMap );
 int result = super.hashCode();
 super.clear();
 return result;
}

代码示例来源:origin: apache/hive

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

代码示例来源:origin: apache/drill

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

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

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((characterSet == null) ? 0 : characterSet.hashCode());
  result = prime * result + ((driverClass == null) ? 0 : driverClass.hashCode());
  result = prime * result + ((languages == null) ? 0 : languages.hashCode());
  result = prime * result + ((properties == null) ? 0 : properties.hashCode());
  result = prime * result + ((propertiesSource == null) ? 0 : propertiesSource.hashCode());
  result = prime * result + sourceCodeReturnType;
  result = prime * result + ((sourceCodeTypes == null) ? 0 : sourceCodeTypes.hashCode());
  return result;
}

代码示例来源:origin: apache/geode

@Override
public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = prime * result + ((cacheXmlContent == null) ? 0 : cacheXmlContent.hashCode());
 result = prime * result + ((cacheXmlFileName == null) ? 0 : cacheXmlFileName.hashCode());
 result = prime * result + ((configName == null) ? 0 : configName.hashCode());
 result = prime * result + ((gemfireProperties == null) ? 0 : gemfireProperties.hashCode());
 result = prime * result + ((jarNames == null) ? 0 : jarNames.hashCode());
 result = prime * result + ((propertiesFileName == null) ? 0 : propertiesFileName.hashCode());
 return result;
}

代码示例来源:origin: knightliao/disconf

public int hashCode() {
  return getDelegate().hashCode();
}

代码示例来源:origin: alibaba/yugong

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((encode == null) ? 0 : encode.hashCode());
  result = prime * result + ((password == null) ? 0 : password.hashCode());
  result = prime * result + ((properties == null) ? 0 : properties.hashCode());
  result = prime * result + ((type == null) ? 0 : type.hashCode());
  result = prime * result + ((url == null) ? 0 : url.hashCode());
  result = prime * result + ((username == null) ? 0 : username.hashCode());
  return result;
}

代码示例来源:origin: apache/incubator-druid

@Override
 public int hashCode()
 {
  int result = (isCreateTables() ? 1 : 0);
  result = 31 * result + (getHost() != null ? getHost().hashCode() : 0);
  result = 31 * result + getPort();
  result = 31 * result + (getConnectURI() != null ? getConnectURI().hashCode() : 0);
  result = 31 * result + (getUser() != null ? getUser().hashCode() : 0);
  result = 31 * result + (passwordProvider != null ? passwordProvider.hashCode() : 0);
  result = 31 * result + (dbcpProperties != null ? dbcpProperties.hashCode() : 0);
  return result;
 }
}

代码示例来源:origin: apache/maven

@Override
public int hashCode()
{
  int hashCode = ( type == null ) ? 0 : type.hashCode();
  if ( this.getModel().getProvides() != null )
  {
    hashCode = 31 * hashCode + this.getModel().getProvides().hashCode();
  }
  return hashCode;
}

代码示例来源:origin: apache/hive

@Override
public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = result * prime +
   (getInputFileFormatClass() == null ? 0 : getInputFileFormatClass().hashCode());
 result = result * prime +
   (getOutputFileFormatClass() == null ? 0 : getOutputFileFormatClass().hashCode());
 result = result * prime + (getProperties() == null ? 0 : getProperties().hashCode());
 result = result * prime + (getTableDesc() == null ? 0 : getTableDesc().hashCode());
 result = result * prime + (getPartSpec() == null ? 0 : getPartSpec().hashCode());
 result = result * prime +
   (getVectorPartitionDesc() == null ? 0 : getVectorPartitionDesc().hashCode());
 return result;
}

代码示例来源:origin: apache/drill

@Override
public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = result * prime +
   (getInputFileFormatClass() == null ? 0 : getInputFileFormatClass().hashCode());
 result = result * prime +
   (getOutputFileFormatClass() == null ? 0 : getOutputFileFormatClass().hashCode());
 result = result * prime + (getProperties() == null ? 0 : getProperties().hashCode());
 result = result * prime + (getTableDesc() == null ? 0 : getTableDesc().hashCode());
 result = result * prime + (getPartSpec() == null ? 0 : getPartSpec().hashCode());
 result = result * prime +
   (getVectorPartitionDesc() == null ? 0 : getVectorPartitionDesc().hashCode());
 return result;
}

相关文章

微信公众号

最新文章

更多