Example usage for java.lang Long hashCode

List of usage examples for java.lang Long hashCode

Introduction

In this page you can find the example usage for java.lang Long hashCode.

Prototype

public static int hashCode(long value) 

Source Link

Document

Returns a hash code for a long value; compatible with Long.hashCode() .

Usage

From source file:net.dv8tion.jda.core.entities.impl.AbstractChannelImpl.java

@Override
public int hashCode() {
    return Long.hashCode(id);
}

From source file:org.formix.dsx.XmlElement.java

@Override
public int hashCode() {
    return XmlElement.class.getName().hashCode() ^ Long.hashCode(this.id);
}

From source file:repast.simphony.util.collections.OpenLongToDoubleHashMap.java

/**
 * Compute the hash value of a key/*from   www .jav a  2s  .c om*/
 * @param key key to hash
 * @return hash value of the key
 */
private static int hashOf(final long key) {
    return Long.hashCode(key);
}