Example usage for java.util Arrays hashCode

List of usage examples for java.util Arrays hashCode

Introduction

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

Prototype

public static int hashCode(Object a[]) 

Source Link

Document

Returns a hash code based on the contents of the specified array.

Usage

From source file:org.opendaylight.alto.core.northbound.api.utils.rfc7285.RFC7285CostType.java

@Override
public int hashCode() {
    String[] members = { metric, mode };
    return Arrays.hashCode(members);
}

From source file:VASSAL.tools.HashCode.java

public static final int hash(final char[] a) {
    return Arrays.hashCode(a);
}

From source file:MultiKey.java

/**
 * Creates a new instance from the provided values. It is assumed that the values provided are good map keys
 * themselves -- immutable, with proper implementations of equals() and hashCode().
 *
 * @param values// www . j a  v a2s  .  com
 */
public MultiKey(Object... values) {
    this.values = values;

    hashCode = PRIME * Arrays.hashCode(this.values);
}

From source file:VASSAL.tools.HashCode.java

public static final int hash(final short[] a) {
    return Arrays.hashCode(a);
}

From source file:monasca.persister.repository.Sha1HashId.java

@Override
public int hashCode() {
    return Arrays.hashCode(sha1Hash);
}

From source file:co.cask.cdap.cli.CLIMainArgs.java

@Override
public int hashCode() {
    return Objects.hashCode(Arrays.hashCode(optionTokens), Arrays.hashCode(commandTokens));
}

From source file:VASSAL.tools.HashCode.java

public static final int hash(final int[] a) {
    return Arrays.hashCode(a);
}

From source file:com.opengamma.analytics.math.integration.GaussianQuadratureData.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + Arrays.hashCode(_abscissas);
    result = prime * result + Arrays.hashCode(_weights);
    return result;
}

From source file:VASSAL.tools.HashCode.java

public static final int hash(final long[] a) {
    return Arrays.hashCode(a);
}

From source file:ws.moor.bt.util.ByteArray.java

public int hashCode() {
    return Arrays.hashCode(bytes);
}