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:com.springsource.hq.plugin.tcserver.serverconfig.configuration.context.ContextContainer.java

@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(this.staticResourceCache) * 29
            + ObjectUtils.nullSafeHashCode(this.webApplicationLogger) * 29;
}

From source file:example.app.model.PhoneNumber.java

@Override
public int hashCode() {
    int hashValue = 17;
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getAreaCode());
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getPrefix());
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getSuffix());
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getExtension());
    return hashValue;
}

From source file:com.springsource.hq.plugin.tcserver.serverconfig.configuration.general.GeneralConfig.java

@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(this.serverProperties) * 29
            + ObjectUtils.nullSafeHashCode(this.jmxListener) * 29
            + ObjectUtils.nullSafeHashCode(this.aprLifecycleListener) * 29;
}

From source file:org.devefx.httpmapper.http.RequestEntity.java

@Override
public int hashCode() {
    int hashCode = super.hashCode();
    hashCode = 29 * hashCode + ObjectUtils.nullSafeHashCode(this.method);
    hashCode = 29 * hashCode + ObjectUtils.nullSafeHashCode(this.url);
    return hashCode;
}

From source file:com.springsource.hq.plugin.tcserver.serverconfig.Settings.java

@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(this.eid) * 29 + ObjectUtils.nullSafeHashCode(this.configuration) * 29
            + ObjectUtils.nullSafeHashCode(this.dataSources) * 29
            + ObjectUtils.nullSafeHashCode(this.services) * 29;
}

From source file:com.springsource.hq.plugin.tcserver.serverconfig.services.connector.AjpConnector.java

@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(this.protocol) + ObjectUtils.nullSafeHashCode(this.requestSecret)
            + ObjectUtils.nullSafeHashCode(this.requestUseSecret) + super.hashCode() * 29;
}

From source file:example.app.model.Address.java

@Override
public int hashCode() {
    int hashValue = 17;
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getLocation());
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getStreet());
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getCity());
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getState());
    hashValue = 37 * hashValue + ObjectUtils.nullSafeHashCode(this.getZipCode());
    return hashValue;
}

From source file:com.springsource.hq.plugin.tcserver.serverconfig.configuration.jvm.Debug.java

@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(this.heapDumpOnOutOfMemoryError) * 29
            + ObjectUtils.nullSafeHashCode(this.loggc) * 29 + ObjectUtils.nullSafeHashCode(this.printGC) * 29
            + ObjectUtils.nullSafeHashCode(this.printGCApplicationStoppedTime) * 29
            + ObjectUtils.nullSafeHashCode(this.printGCDetails) * 29
            + ObjectUtils.nullSafeHashCode(this.printGCTimeStamps) * 29
            + ObjectUtils.nullSafeHashCode(this.printHeapAtGC) * 29;
}

From source file:com.springsource.hq.plugin.tcserver.serverconfig.services.engine.Logging.java

@Override
public int hashCode() {
    return ObjectUtils.nullSafeHashCode(this.directory) * 29
            + ObjectUtils.nullSafeHashCode(this.fileDateFormat) * 29
            + ObjectUtils.nullSafeHashCode(this.pattern) * 29 + ObjectUtils.nullSafeHashCode(this.prefix) * 29
            + ObjectUtils.nullSafeHashCode(this.suffix) * 29;
}

From source file:com.unioncast.mv.spring.ResponseEntity.java

@Override
public int hashCode() {
    return super.hashCode() * 29 + ObjectUtils.nullSafeHashCode(this.statusCode);
}