Example usage for java.util Objects hashCode

List of usage examples for java.util Objects hashCode

Introduction

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

Prototype

public static int hashCode(Object o) 

Source Link

Document

Returns the hash code of a non- null argument and 0 for a null argument.

Usage

From source file:com.yahoo.elide.datastores.hibernate3.usertypes.JsonType.java

/**
 * {@inheritDoc}/*from w  w w. j a  va 2s .com*/
 */
@Override
public int hashCode(Object object) throws HibernateException {

    return Objects.hashCode(object);
}

From source file:th.co.geniustree.dental.model.Department.java

@Override
public int hashCode() {
    int hash = 3;
    hash = 71 * hash + Objects.hashCode(this.id);
    return hash;
}

From source file:ca.qhrtech.entities.Category.java

@Override
public int hashCode() {
    int hash = 5;
    hash = 83 * hash + (int) (this.id ^ (this.id >>> 32));
    hash = 83 * hash + Objects.hashCode(this.name);
    return hash;//from  w w  w  .  ja  va2s.c  o m
}

From source file:com.offbynull.voip.kademlia.model.RouterChangeSet.java

@Override
public int hashCode() {
    int hash = 3;
    hash = 79 * hash + Objects.hashCode(this.routeTreeChangeSet);
    return hash;/*  ww w .  ja  v  a 2 s  .co m*/
}

From source file:com.civprod.writerstoolbox.NaturalLanguage.util.TextAndTokenHandling.RegexTokenStripper.java

@Override
public int hashCode() {
    int hash = 5;
    hash = 97 * hash + Objects.hashCode(this.removeRegEx);
    return hash;
}

From source file:pa036.sprava_uziv_profilov.nosql.entities.Restaurant.java

@Override
public int hashCode() {
    int hash = 5;
    hash = 17 * hash + this.id.hashCode();
    hash = 17 * hash + Objects.hashCode(this.name);
    return hash;/*from   ww w. j  av a2 s.  c  om*/
}

From source file:org.protempa.proposition.value.OrdinalValueBuilder.java

@Override
public int hashCode() {
    int hash = 5;
    hash = 97 * hash + Objects.hashCode(this.value);
    hash = 97 * hash + this.index;
    return hash;/*w w  w  . j  a  v  a 2 s  . c  om*/
}

From source file:de.fraunhofer.iosb.ilt.sta.model.ext.TimeInterval.java

@Override
public int hashCode() {
    int hash = 5;
    hash = 67 * hash + Objects.hashCode(this.interval);
    return hash;
}

From source file:com.mycompany.securitylogin.model.User.java

@Override
public int hashCode() {
    int hash = 3;
    hash = 97 * hash + Objects.hashCode(this.id);
    return hash;
}

From source file:th.co.geniustree.dental.model.OrderProduct.java

@Override
public int hashCode() {
    int hash = 7;
    hash = 73 * hash + Objects.hashCode(this.Id);
    return hash;
}