Example usage for org.springframework.util ObjectUtils nullSafeHashCode

List of usage examples for org.springframework.util ObjectUtils nullSafeHashCode

Introduction

In this page you can find the example usage for org.springframework.util ObjectUtils nullSafeHashCode.

Prototype

public static int nullSafeHashCode(@Nullable short[] array) 

Source Link

Document

Return a hash code based on the contents of the specified array.

Usage

From source file:org.springframework.aop.aspectj.AspectJExpressionPointcut.java

@Override
public int hashCode() {
    int hashCode = ObjectUtils.nullSafeHashCode(this.getExpression());
    hashCode = 31 * hashCode + ObjectUtils.nullSafeHashCode(this.pointcutDeclarationScope);
    hashCode = 31 * hashCode + ObjectUtils.nullSafeHashCode(this.pointcutParameterNames);
    hashCode = 31 * hashCode + ObjectUtils.nullSafeHashCode(this.pointcutParameterTypes);
    return hashCode;
}

From source file:org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource.java

@Override
public int hashCode() {
    int hashCode = getClass().hashCode();
    hashCode = 13 * hashCode + ObjectUtils.nullSafeHashCode(this.beanFactory);
    hashCode = 13 * hashCode + ObjectUtils.nullSafeHashCode(this.targetBeanName);
    return hashCode;
}

From source file:org.springframework.context.support.ApplicationListenerDetector.java

@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(this.applicationContext);
}

From source file:org.springframework.core.env.PropertySource.java

/**
 * Return a hash code derived from the {@code name} property
 * of this {@code PropertySource} object.
 *//*www.  ja va2  s  .  c  o m*/
@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(this.name);
}

From source file:org.springframework.jca.context.SpringContextResourceAdapter.java

@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(getContextConfigLocation());
}