當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。