Example usage for java.util Arrays deepHashCode

List of usage examples for java.util Arrays deepHashCode

Introduction

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

Prototype

public static int deepHashCode(Object a[]) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {

    Object[] ob = { "java2s", "java2s.com" };

    // deephashcode for object ob
    int retval = Arrays.deepHashCode(ob);

    System.out.println("The Hash Code of ob is:" + retval);
}

From source file:com.mcleodmoores.mvn.natives.StaticLib.java

@Override
public int hashCode() {
    return super.hashCode() * 17 + Arrays.deepHashCode(getHeaders());
}

From source file:com.mcleodmoores.mvn.natives.DynamicLib.java

@Override
public int hashCode() {
    return super.hashCode() * 17 + Arrays.deepHashCode(getHeaders()) * 31 + Arrays.deepHashCode(getImplibs());
}

From source file:com.mcleodmoores.mvn.natives.Executable.java

@Override
public int hashCode() {
    return super.hashCode() * 17 + Arrays.deepHashCode(getHeaders()) * 31 + Arrays.deepHashCode(getLibraries());
}

From source file:io.fouad.jtb.core.beans.InlineKeyboardMarkup.java

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

From source file:io.fouad.jtb.core.beans.UserProfilePhotos.java

@Override
public int hashCode() {
    int result = totalCount;
    result = 31 * result + Arrays.deepHashCode(photos);
    return result;
}

From source file:io.confluent.kafkarest.entities.BinaryConsumerRecord.java

@Override
public int hashCode() {
    return Arrays.deepHashCode(new Object[] { topic, key, value, partition, offset });
}

From source file:org.onosproject.cluster.ClusterMetadata.java

@Override
public int hashCode() {
    return Arrays.deepHashCode(new Object[] { name, nodes, partitions });
}

From source file:org.protempa.valueset.ValueSetElementBuilder.java

@Override
public int hashCode() {
    int hash = 7;
    hash = 61 * hash + Objects.hashCode(this.valueBuilder);
    hash = 61 * hash + Objects.hashCode(this.displayName);
    hash = 61 * hash + Objects.hashCode(this.abbrevDisplayName);
    hash = 61 * hash + Arrays.deepHashCode(this.attributeBuilders);
    return hash;// ww w  .j  a  v  a 2s.  co m
}

From source file:com.github.horrorho.inflatabledonkey.cloud.cloudkit.CKInit.java

@Override
public int hashCode() {
    int hash = 7;
    hash = 19 * hash + Objects.hashCode(this.cloudKitDeviceUrl);
    hash = 19 * hash + Objects.hashCode(this.cloudKitDatabaseUrl);
    hash = 19 * hash + Arrays.deepHashCode(this.containers);
    hash = 19 * hash + Objects.hashCode(this.cloudKitShareUrl);
    hash = 19 * hash + Objects.hashCode(this.cloudKitUserId);
    return hash;/*from  ww w . j  av a 2  s.  c  o m*/
}