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:no.digipost.api.client.representations.FileType.java

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

From source file:com.swcguild.dvdlibrarymvc.model.Dvd.java

@Override
public int hashCode() {
    int hash = 7;
    hash = 11 * hash + Objects.hashCode(this.title);
    hash = 11 * hash + Objects.hashCode(this.releaseDate);
    hash = 11 * hash + Objects.hashCode(this.mpaaRating);
    hash = 11 * hash + Objects.hashCode(this.directorName);
    hash = 11 * hash + Objects.hashCode(this.studio);
    hash = 11 * hash + this.id;
    hash = 11 * hash + Objects.hashCode(this.userNote);
    return hash;//w w  w .j  ava2 s .c  o m
}

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

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

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

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

From source file:com.github.horrorho.inflatabledonkey.args.Arg.java

@Override
public int hashCode() {
    int hash = 7;
    hash = 41 * hash + Objects.hashCode(this.option);
    hash = 41 * hash + Objects.hashCode(this.mapper);
    hash = 41 * hash + Objects.hashCode(this.property);
    return hash;//from  ww w . java 2 s .co m
}

From source file:fr.landel.utils.assertor.AssertorArrayTest.java

/**
 * Test method for {@link AssertorArray} .
 */// w  ww. jav  a 2  s. c  o m
@Test
public void testPredicateGet() {
    String[] array = new String[] { null, "2" };

    assertFalse(Assertor.that(array).hasHashCode(0).isOK());
    assertTrue(Assertor.that(array).hasHashCode(Objects.hashCode((Object[]) array)).isOK());
}

From source file:com.jivesoftware.os.upena.amza.shared.TableName.java

@Override
public int hashCode() {
    int hash = 3;
    hash = 89 * hash + Objects.hashCode(this.ringName);
    hash = 89 * hash + Objects.hashCode(this.tableName);
    hash = 89 * hash + Objects.hashCode(this.minKeyInclusive);
    hash = 89 * hash + Objects.hashCode(this.maxKeyExclusive);
    return hash;//from ww  w . j  a  v  a 2 s .  c  om
}

From source file:de.ks.flatadocdb.defaults.DefaultFileGenerator.java

protected String parseHashCode(Object object) {
    int hashCode = Objects.hashCode(object);
    byte[] array = new byte[] { (byte) (hashCode >>> 24), (byte) (hashCode >>> 16), (byte) (hashCode >>> 8),
            (byte) hashCode };
    return Hex.encodeHexString(array);
}

From source file:edu.usu.sdl.openstorefront.core.entity.AttributeCodePk.java

@Override
public int hashCode() {
    int hash = 5;
    hash = 89 * hash + Objects.hashCode(getAttributeType());
    hash = 89 * hash + Objects.hashCode(getAttributeCode());
    return hash;//w w  w  . jav a2  s .c  o  m
}

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

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