Example usage for java.util Objects hash

List of usage examples for java.util Objects hash

Introduction

In this page you can find the example usage for java.util Objects hash.

Prototype

public static int hash(Object... values) 

Source Link

Document

Generates a hash code for a sequence of input values.

Usage

From source file:com.testing26thjuly_.db123testing.AllTypes.java

@Override
public int hashCode() {
    return Objects.hash(getId());
}

From source file:com.evolveum.midpoint.model.impl.lens.EvaluationOrderImpl.java

@Override
public int hashCode() {
    return Objects.hash(orderMap);
}

From source file:com.jasperreports.hrdb.Employee.java

@Override
public int hashCode() {
    return Objects.hash(getEid());
}

From source file:io.atomix.core.tree.DocumentPath.java

@Override
public int hashCode() {
    return Objects.hash(pathElements);
}

From source file:com.zestedesavoir.zestwriter.model.Content.java

@Override
public int hashCode() {
    return Objects.hash(getFilePath());
}

From source file:com.hrdb.Employee.java

@Override
public int hashCode() {
    return Objects.hash(getEmpId());
}

From source file:com.connio.sdk.resource.alert.Alert.java

@Override
public int hashCode() {
    return Objects.hash(this.id);
}

From source file:com.carlomicieli.jtrains.value.objects.LocalizedField.java

@Override
public int hashCode() {
    return Objects.hash(this.values);
}

From source file:com.thoughtworks.go.apiv2.environments.EnvironmentsControllerV2.java

@Override
public String etagFor(EnvironmentConfig entityFromServer) {
    if (entityFromServer instanceof MergeEnvironmentConfig) {
        return DigestUtils.md5Hex(String.valueOf(Objects.hash(entityFromServer)));
    }/*from  ww  w. ja  v  a 2s  .  c o m*/
    return entityHashingService.md5ForEntity(entityFromServer);
}

From source file:com.thoughtworks.go.server.service.EntityHashingService.java

public String md5ForEntity(CombinedPluginInfo pluginInfo) {
    String cacheKey = cacheKey(pluginInfo, String.format("plugin_info_%s", pluginInfo.getDescriptor().id()));
    return getFromCache(cacheKey, () -> String.valueOf(Objects.hash(pluginInfo)));
}