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.opengamma.core.marketdatasnapshot.CurveKey.java

/**
 * Returns a suitable hash code.
 *
 * @return the hash code
 */
@Override
public int hashCode() {
    return ObjectUtils.hashCode(getName());
}

From source file:de.schildbach.game.chess.ChessMove.java

@Override
public int hashCode() {
    int hashCode = super.hashCode();
    hashCode *= 37;//from   w w  w. java 2 s.co  m
    hashCode += ObjectUtils.hashCode(promotionPiece);
    return hashCode;
}

From source file:com.panet.imeta.core.plugins.PluginLocation.java

@Override
public int hashCode() {
    return ObjectUtils.hashCode(id) + ObjectUtils.hashCode(location);
}

From source file:de.fu_berlin.inf.dpp.activities.PermissionActivity.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = super.hashCode();
    result = prime * result + ObjectUtils.hashCode(affectedUser);
    result = prime * result + ObjectUtils.hashCode(permission);
    return result;
}

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

@Override
public int hashCode() {
    return ObjectUtils.hashCode(street) + 7 * ObjectUtils.hashCode(postalCode)
            + 7 * ObjectUtils.hashCode(postOffice);
}

From source file:com.manydesigns.portofino.database.StringBooleanType.java

public int hashCode(Object x) throws HibernateException {
    return ObjectUtils.hashCode(x);
}

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

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

From source file:com.opengamma.masterdb.security.hibernate.future.FutureBundleBean.java

@Override
public int hashCode() {
    int hc = 1;/* ww  w  . j av a  2s.  c om*/
    hc = hc * 17 + ObjectUtils.hashCode(getConversionFactor());
    hc = hc * 17 + ObjectUtils.hashCode(getIdentifiers());
    return hc;
}

From source file:com.opengamma.engine.view.DeltaDefinition.java

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

From source file:com.vmware.identity.session.LogoutRequestData.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ObjectUtils.hashCode(initiator);
    result = prime * result + ObjectUtils.hashCode(initiatorRequestId);
    result = prime * result + ObjectUtils.hashCode(current);
    result = prime * result + ObjectUtils.hashCode(currentRequestId);
    return result;
}