本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例14: hashCode
import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
示例15: hashCode
import org.apache.commons.lang.ObjectUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
return ObjectUtils.hashCode(first) * ObjectUtils.hashCode(second);
}