本文整理匯總了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);
}