当前位置: 首页>>代码示例>>Java>>正文


Java ObjectUtils.hashCode方法代码示例

本文整理汇总了Java中org.apache.commons.lang.ObjectUtils.hashCode方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectUtils.hashCode方法的具体用法?Java ObjectUtils.hashCode怎么用?Java ObjectUtils.hashCode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.commons.lang.ObjectUtils的用法示例。


在下文中一共展示了ObjectUtils.hashCode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int result = ObjectUtils.hashCode(group);
    result = 31 * result + ObjectUtils.hashCode(name);
    result = 31 * result + ObjectUtils.hashCode(version);
    return result;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:DefaultModuleDependencySpec.java

示例2: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int result = ObjectUtils.hashCode(projectPath);
    result = 31 * result + ObjectUtils.hashCode(libraryName);
    result = 31 * result + ObjectUtils.hashCode(variant);
    return result;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:DefaultLibraryBinaryDependencySpec.java

示例3: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
/**
 * Return the hashcode.
 *
 * @return the hashcode
 * @since 2.6
 */
public int hashCode() {
    int result = super.hashCode();
    result = HASH_SEED * result + ObjectUtils.hashCode(registry);
    result = HASH_SEED * result + ObjectUtils.hashCode(toPattern);
    return result;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:13,代码来源:ExtendedMessageFormat.java

示例4: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
  int hc = ObjectUtils.hashCode(_identifierBundle);
  hc += (hc << 4) + ObjectUtils.hashCode(_identifierValidityDate);
  hc += (hc << 4) + ObjectUtils.hashCode(_dataSource);
  hc += (hc << 4) + ObjectUtils.hashCode(_dataProvider);
  hc += (hc << 4) + ObjectUtils.hashCode(_dataField);
  hc += (hc << 4) + ObjectUtils.hashCode(_resolutionKey);
  return hc;
}
 
开发者ID:DevStreet,项目名称:FinanceAnalytics,代码行数:11,代码来源:EHCachingHistoricalTimeSeriesResolver.java

示例5: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
  int hc = 1;
  hc += hc * 16 + ObjectUtils.hashCode(_functionIdentifier);
  hc += hc * 16 + ObjectUtils.hashCode(_functionParameters);
  hc += hc * 16 + ObjectUtils.hashCode(_target);
  hc += hc * 16 + ObjectUtils.hashCode(_inputs);
  hc += hc * 16 + (_inputsExactMatch ? 1 : 0);
  hc += hc * 16 + ObjectUtils.hashCode(_outputs);
  hc += hc * 16 + (_outputsExactMatch ? 1 : 0);
  return hc;
}
 
开发者ID:DevStreet,项目名称:FinanceAnalytics,代码行数:13,代码来源:FunctionBlacklistRule.java

示例6: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
  int hc = 1;
  hc += (hc << 4) + ObjectUtils.hashCode(_startDateDescriptor);
  hc += (hc << 4) + (_includeStart ? 1 : 0);
  hc += (hc << 4) + ObjectUtils.hashCode(_endDateDescriptor);
  hc += (hc << 4) + (_includeEnd ? 1 : 0);
  hc += (hc << 4) + (_currencyCalendars != null ? _currencyCalendars.hashCode() : 0);
  hc += (hc << 4) + _marketDataMode.hashCode();
  return hc;
}
 
开发者ID:DevStreet,项目名称:FinanceAnalytics,代码行数:12,代码来源:HistoricalViewEvaluationTarget.java

示例7: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
  int hc = 1;
  hc = hc * 17 + ObjectUtils.hashCode(getConversionFactor());
  hc = hc * 17 + ObjectUtils.hashCode(getIdentifiers());
  return hc;
}
 
开发者ID:DevStreet,项目名称:FinanceAnalytics,代码行数:8,代码来源:FutureBundleBean.java

示例8: equalsCachedValue

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
/**
 * Returns true, if the cached value is equal to the new value.
 */
private boolean equalsCachedValue(Object value, String itemName) {
	Object cachedValue = itemCache.get(itemName);
	if (cachedValue == null && value != null) {
		return false;
	}
	int cachedValueHashCode = ObjectUtils.hashCode(cachedValue);
	int valueHashCode = ObjectUtils.hashCode(value);
	return cachedValueHashCode == valueHashCode;
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:13,代码来源:WeatherPublisher.java

示例9: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
  int hc = _viewDefinitionId.hashCode();
  hc += (hc << 4) + ObjectUtils.hashCode(_marketDataProvider);
  hc += (hc << 4) + ObjectUtils.hashCode(_scenarioManipulations);
  return hc;
}
 
开发者ID:DevStreet,项目名称:FinanceAnalytics,代码行数:8,代码来源:ViewExecutionCacheKey.java

示例10: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = 1;
    hash = hash * 31 + ObjectUtils.hashCode(getMotechEvent());
    hash = hash * 31 + ObjectUtils.hashCode(getStartDate());
    hash = hash * 31 + ObjectUtils.hashCode(getEndDate());
    hash = hash * 31 + ObjectUtils.hashCode(repeatPeriod);
    hash = hash * 31 + ObjectUtils.hashCode(isIgnorePastFiresAtStart());
    hash = hash * 31 + ObjectUtils.hashCode(isUseOriginalFireTimeAfterMisfire());

    return hash;
}
 
开发者ID:motech,项目名称:motech,代码行数:13,代码来源:RepeatingPeriodSchedulableJob.java

示例11: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ObjectUtils.hashCode(getName());
  result = prime * result + ObjectUtils.hashCode(getPortfolioId());
  result = prime * result + ObjectUtils.hashCode(getMarketDataUser());
  result = prime * result + _calculationConfigurationsByName.hashCode();
  return result;
}
 
开发者ID:DevStreet,项目名称:FinanceAnalytics,代码行数:11,代码来源:ViewDefinition.java

示例12: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ObjectUtils.hashCode(getName());
  result = prime * result + ObjectUtils.hashCode(getAllPortfolioRequirements());
  result = prime * result + ObjectUtils.hashCode(getSpecificRequirements());
  result = prime * result + ObjectUtils.hashCode(getDefaultProperties());
  result = prime * result + ObjectUtils.hashCode(getScenarioId());
  result = prime * result + ObjectUtils.hashCode(getScenarioParametersId());
  result = prime * result + ObjectUtils.hashCode(getResolutionRuleTransform());
  result = prime * result + ObjectUtils.hashCode(getColumns());
  result = prime * result + ObjectUtils.hashCode(getMergedOutputs());
  return result;
}
 
开发者ID:DevStreet,项目名称:FinanceAnalytics,代码行数:16,代码来源:ViewCalculationConfiguration.java

示例13: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int result = ObjectUtils.hashCode(projectPath);
    result = 31 * result + ObjectUtils.hashCode(libraryName);
    return result;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:7,代码来源:DefaultProjectDependencySpec.java

示例14: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultArtifactPom.java

示例15: hashCode

import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    return ObjectUtils.hashCode(first) * ObjectUtils.hashCode(second);
}
 
开发者ID:airsonic,项目名称:airsonic,代码行数:5,代码来源:Pair.java


注:本文中的org.apache.commons.lang.ObjectUtils.hashCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。