下面列出了org.apache.commons.lang.ObjectUtils#hashCode ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
/**
* 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;
}
@Override
public int hashCode() {
int ret = 7;
ret = 31 * ret + ObjectUtils.hashCode(ownerUser);
ret = 31 * ret + ObjectUtils.hashCode(elements);
return ret;
}
@Override
public int hashCode() {
return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
@Override
public int hashCode() {
return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
@Override
public int hashCode() {
return ObjectUtils.hashCode(first) * ObjectUtils.hashCode(second);
}
@Override
public int hashCode() {
return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
@Override
public int hashCode() {
return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
/**
*
* {@inheritDoc}
*/
@Override
public int hashCode( )
{
return ObjectUtils.hashCode( this.getName( ) );
}
public int hashCode() {
return ObjectUtils.hashCode(id);
}
/**
* Returns true, if the cached value is equal to the new value.
*/
private boolean equalsCachedValue(Object value, Item item) {
int cachedValueHashCode = ObjectUtils.hashCode(itemCache.get(item.getName()));
int valueHashCode = ObjectUtils.hashCode(value);
return cachedValueHashCode == valueHashCode;
}