Example usage for com.google.common.primitives Longs hashCode

List of usage examples for com.google.common.primitives Longs hashCode

Introduction

In this page you can find the example usage for com.google.common.primitives Longs hashCode.

Prototype

public static int hashCode(long value) 

Source Link

Document

Returns a hash code for value ; equal to the result of invoking ((Long) value).hashCode() .

Usage

From source file:com.comphenix.protocol.async.AsyncMarker.java

@Override
public int hashCode() {
    return Longs.hashCode(getNewSendingIndex());
}

From source file:org.apache.tajo.datum.IntervalDatum.java

@Override
public int hashCode() {
    return Longs.hashCode(asInt8());
}

From source file:org.midonet.odp.FlowMatch.java

@Override
public int hashCode() {
    if (hashCode == 0) {
        int result = Longs.hashCode(usedFields);
        for (Field f : fields) {
            if (isUsed(f))
                result = 31 * result + f.hashCode(this);
        }// www. j  a v  a2 s  .co  m
        hashCode = result;
    }
    return hashCode;
}