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