本文整理匯總了Java中org.springframework.util.ObjectUtils.nullSafeHashCode方法的典型用法代碼示例。如果您正苦於以下問題:Java ObjectUtils.nullSafeHashCode方法的具體用法?Java ObjectUtils.nullSafeHashCode怎麽用?Java ObjectUtils.nullSafeHashCode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.springframework.util.ObjectUtils
的用法示例。
在下文中一共展示了ObjectUtils.nullSafeHashCode方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
int result = ObjectUtils.nullSafeHashCode(getScheme());
result = 31 * result + ObjectUtils.nullSafeHashCode(this.ssp);
result = 31 * result + ObjectUtils.nullSafeHashCode(getFragment());
return result;
}
示例2: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
int result = ObjectUtils.nullSafeHashCode(getScheme());
result = 31 * result + ObjectUtils.nullSafeHashCode(this.userInfo);
result = 31 * result + ObjectUtils.nullSafeHashCode(this.host);
result = 31 * result + this.port;
result = 31 * result + this.path.hashCode();
result = 31 * result + this.queryParams.hashCode();
result = 31 * result + ObjectUtils.nullSafeHashCode(getFragment());
return result;
}
示例3: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(this.eventType) * 29 + ObjectUtils.nullSafeHashCode(this.sourceType);
}
示例4: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return this.name.hashCode() * 29 + ObjectUtils.nullSafeHashCode(this.value);
}
示例5: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return (29 * super.hashCode() + ObjectUtils.nullSafeHashCode(this.beanName));
}
示例6: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(this.parentName) * 29 + super.hashCode();
}
示例7: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(this.value) * 29 + ObjectUtils.nullSafeHashCode(this.targetType);
}
示例8: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(this.headers) * 29 + ObjectUtils.nullSafeHashCode(this.body);
}
示例9: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return super.hashCode() * 29 + ObjectUtils.nullSafeHashCode(this.statusCode);
}
示例10: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(getContextConfigLocation());
}
示例11: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(this.value);
}
示例12: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(this.filters);
}
示例13: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return EmptyTargetSource.class.hashCode() * 13 + ObjectUtils.nullSafeHashCode(this.targetClass);
}
示例14: hashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
@Override
public int hashCode() {
return ObjectUtils.nullSafeHashCode(new Object[] {method, target});
}
示例15: contentHashCode
import org.springframework.util.ObjectUtils; //導入方法依賴的package包/類
/**
* Determine whether the hash code of the content of this ValueHolder.
* <p>Note that ValueHolder does not implement {@code hashCode}
* directly, to allow for multiple ValueHolder instances with the
* same content to reside in the same Set.
*/
private int contentHashCode() {
return ObjectUtils.nullSafeHashCode(this.value) * 29 + ObjectUtils.nullSafeHashCode(this.type);
}