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.offbynull.voip.kademlia.model.RouteTreeChangeSet.java

@Override
public int hashCode() {
    int hash = 5;
    hash = 43 * hash + Objects.hashCode(this.kBucketPrefix);
    hash = 43 * hash + Objects.hashCode(this.kBucketChangeSet);
    return hash;//from  www .j  ava2s  .com
}

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

@Override
public int hashCode() {
    int hash = 3;
    hash = 83 * hash + Objects.hashCode(this.bucketChangeSet);
    hash = 83 * hash + Objects.hashCode(this.cacheChangeSet);
    return hash;//from   w ww.  ja va  2 s.  c o  m
}

From source file:com.offbynull.peernetic.playground.chorddht.model.ExternalPointer.java

@Override
public int hashCode() {
    int hash = 7;
    hash = 37 * hash + Objects.hashCode(this.id);
    hash = 37 * hash + Objects.hashCode(this.address);
    return hash;// ww w .j  a v a2  s. c  om
}

From source file:richtercloud.document.scanner.valuedetectionservice.ValueDetectionResult.java

@Override
public int hashCode() {
    int hash = 3;
    hash = 29 * hash + Objects.hashCode(this.oCRSource);
    hash = 29 * hash + Objects.hashCode(this.value);
    return hash;//from  w ww  . j a v  a2  s  .  c o  m
}

From source file:com.greendot.entity.product.Product.java

@Override
public int hashCode() {

    if (productId != null)
        return Objects.hashCode(productId);
    return Objects.hash(productName);
}

From source file:org.protempa.KeySetSpec.java

@Override
public int hashCode() {
    int hash = 3;
    hash = 29 * hash + Objects.hashCode(this.sourceSystem);
    hash = 29 * hash + Objects.hashCode(this.id);
    hash = 29 * hash + Objects.hashCode(this.displayName);
    hash = 29 * hash + Objects.hashCode(this.description);
    return hash;//  w w w. j  av  a2s  .c  o  m
}

From source file:de.knightsoftnet.navigation.shared.models.MinimumUser.java

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

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

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

From source file:com.linksinnovation.elearning.model.Reply.java

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

From source file:com.jivesoftware.os.upena.shared.BasicTimestampedValue.java

@Override
public int hashCode() {
    int hash = 7;
    hash = 83 * hash + (int) (this.timestamp ^ (this.timestamp >>> 32));
    hash = 83 * hash + (this.tombstoned ? 1 : 0);
    hash = 83 * hash + Objects.hashCode(this.value);
    return hash;//from  w  ww  .  j  av a 2 s. c  om
}