Java Code Examples for org.springframework.util.ObjectUtils#nullSafeHashCode()
The following examples show how to use
org.springframework.util.ObjectUtils#nullSafeHashCode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KeyValueTemplateTestsUsingHazelcastTest.java From spring-data-hazelcast with Apache License 2.0 | 5 votes |
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ObjectUtils.nullSafeHashCode(this.id); result = prime * result + ObjectUtils.nullSafeHashCode(this.name); return result; }
Example 2
Source File: Bindable.java From spring-cloud-gray with Apache License 2.0 | 5 votes |
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ObjectUtils.nullSafeHashCode(this.type); result = prime * result + ObjectUtils.nullSafeHashCode(this.annotations); return result; }
Example 3
Source File: HierarchicalUriComponents.java From java-technology-stack with MIT License | 5 votes |
@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 + ObjectUtils.nullSafeHashCode(this.port); result = 31 * result + this.path.hashCode(); result = 31 * result + this.queryParams.hashCode(); result = 31 * result + ObjectUtils.nullSafeHashCode(getFragment()); return result; }
Example 4
Source File: AbstractNameValueExpression.java From java-technology-stack with MIT License | 5 votes |
@Override public int hashCode() { int result = (isCaseSensitiveName() ? this.name : this.name.toLowerCase()).hashCode(); result = 31 * result + ObjectUtils.nullSafeHashCode(this.value); result = 31 * result + (this.isNegated ? 1 : 0); return result; }
Example 5
Source File: ContentDisposition.java From spring-analysis-note with MIT License | 5 votes |
@Override public int hashCode() { int result = ObjectUtils.nullSafeHashCode(this.type); result = 31 * result + ObjectUtils.nullSafeHashCode(this.name); result = 31 * result + ObjectUtils.nullSafeHashCode(this.filename); result = 31 * result + ObjectUtils.nullSafeHashCode(this.charset); result = 31 * result + ObjectUtils.nullSafeHashCode(this.size); result = 31 * result + (this.creationDate != null ? this.creationDate.hashCode() : 0); result = 31 * result + (this.modificationDate != null ? this.modificationDate.hashCode() : 0); result = 31 * result + (this.readDate != null ? this.readDate.hashCode() : 0); return result; }
Example 6
Source File: AbstractNameValueExpression.java From spring-analysis-note with MIT License | 5 votes |
@Override public int hashCode() { int result = (isCaseSensitiveName() ? this.name : this.name.toLowerCase()).hashCode(); result = 31 * result + ObjectUtils.nullSafeHashCode(this.value); result = 31 * result + (this.isNegated ? 1 : 0); return result; }
Example 7
Source File: HttpEntity.java From java-technology-stack with MIT License | 4 votes |
@Override public int hashCode() { return (ObjectUtils.nullSafeHashCode(this.headers) * 29 + ObjectUtils.nullSafeHashCode(this.body)); }
Example 8
Source File: SpringContextResourceAdapter.java From spring-analysis-note with MIT License | 4 votes |
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(getContextConfigLocation()); }
Example 9
Source File: AbstractApplicationEventMulticaster.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public int hashCode() { return (ObjectUtils.nullSafeHashCode(this.eventType) * 29 + ObjectUtils.nullSafeHashCode(this.sourceType)); }
Example 10
Source File: GenericConversionService.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public int hashCode() { return (ObjectUtils.nullSafeHashCode(this.sourceType) * 29 + ObjectUtils.nullSafeHashCode(this.targetType)); }
Example 11
Source File: ChildBeanDefinition.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.parentName) * 29 + super.hashCode(); }
Example 12
Source File: PropertySource.java From java-technology-stack with MIT License | 4 votes |
/** * Return a hash code derived from the {@code name} property * of this {@code PropertySource} object. */ @Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.name); }
Example 13
Source File: BeanMetadataAttribute.java From java-technology-stack with MIT License | 4 votes |
@Override public int hashCode() { return this.name.hashCode() * 29 + ObjectUtils.nullSafeHashCode(this.value); }
Example 14
Source File: TestEntity.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.id); }
Example 15
Source File: BindResult.java From spring-cloud-gray with Apache License 2.0 | 4 votes |
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.value); }
Example 16
Source File: LookupOverride.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public int hashCode() { return (29 * super.hashCode() + ObjectUtils.nullSafeHashCode(this.beanName)); }
Example 17
Source File: SpringContextResourceAdapter.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public int hashCode() { return ObjectUtils.nullSafeHashCode(getContextConfigLocation()); }
Example 18
Source File: TestSimpSubscription.java From spring-analysis-note with MIT License | 4 votes |
@Override public int hashCode() { return this.id.hashCode() * 31 + ObjectUtils.nullSafeHashCode(getSession()); }
Example 19
Source File: TestSimpSubscription.java From java-technology-stack with MIT License | 4 votes |
@Override public int hashCode() { return this.id.hashCode() * 31 + ObjectUtils.nullSafeHashCode(getSession()); }
Example 20
Source File: ConstructorArgumentValues.java From spring-analysis-note with MIT License | 2 votes |
/** * 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); }