Example usage for org.apache.commons.lang ObjectUtils hashCode

List of usage examples for org.apache.commons.lang ObjectUtils hashCode

Introduction

In this page you can find the example usage for org.apache.commons.lang ObjectUtils hashCode.

Prototype

public static int hashCode(Object obj) 

Source Link

Document

Gets the hash code of an object returning zero when the object is null.

 ObjectUtils.hashCode(null)   = 0 ObjectUtils.hashCode(obj)    = obj.hashCode() 

Usage

From source file:com.vmware.identity.idm.SecurityDomain.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ObjectUtils.hashCode(_name);
    result = prime * result + ObjectUtils.hashCode(_alias);
    return result;
}

From source file:com.ocs.dynamo.domain.AbstractEntity.java

/**
 * Basic hash code function - uses the ID. Override this (and the equals() method) if your
 * entity has a more meaningful key//ww w  .j  a v  a 2s. co  m
 */
@Override
public int hashCode() {
    return ObjectUtils.hashCode(getId());
}

From source file:com.ocs.dynamo.filter.IsNull.java

@Override
public int hashCode() {
    return ObjectUtils.hashCode(propertyId);
}

From source file:com.opengamma.master.config.impl.MockViewDefinition.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ObjectUtils.hashCode(getName());
    result = prime * result + ObjectUtils.hashCode(getPortfolioId());
    return result;
}

From source file:com.ocs.dynamo.dao.query.FetchJoinInformation.java

@Override
public int hashCode() {
    return ObjectUtils.hashCode(property) + ObjectUtils.hashCode(joinType);
}

From source file:com.ocs.dynamo.filter.In.java

@Override
public int hashCode() {
    return ObjectUtils.hashCode(values) + ObjectUtils.hashCode(propertyId);
}

From source file:com.ocs.dynamo.filter.Contains.java

@Override
public int hashCode() {
    return ObjectUtils.hashCode(value) + ObjectUtils.hashCode(propertyId);
}

From source file:com.vaadin.addon.jpacontainer.testdata.Name.java

@Override
public int hashCode() {
    int hash = 3;
    hash = 89 * hash + ObjectUtils.hashCode(firstName);
    hash = 89 * hash + ObjectUtils.hashCode(lastName);
    return hash;// w w w.j av a  2s  .  com
}

From source file:de.schildbach.game.common.SingleCoordinateMove.java

@Override
public int hashCode() {
    return ObjectUtils.hashCode(coordinate);
}

From source file:de.fu_berlin.inf.dpp.netbeans.ui.model.session.SessionHeaderElement.java

@Override
public int hashCode() {
    return ObjectUtils.hashCode(sessionInput);
}