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.engine.view.compilation.CompiledViewCalculationConfigurationImpl.java

@Override
public int hashCode() {
    int hc = ObjectUtils.hashCode(getName());
    hc += (hc << 4) + ObjectUtils.hashCode(getTerminalOutputSpecifications());
    hc += (hc << 4) + ObjectUtils.hashCode(getComputationTargets());
    hc += (hc << 4) + ObjectUtils.hashCode(getMarketDataRequirements());
    return hc;/* w  ww. ja  va  2  s. c o  m*/
}

From source file:com.opengamma.util.time.FlexiDateTime.java

/**
 * A suitable hash code./* ww  w.j a v a2  s  .  c  om*/
 * 
 * @return the hash code
 */
@Override
public int hashCode() {
    return _date.hashCode() ^ ObjectUtils.hashCode(_time) ^ ObjectUtils.hashCode(_zone);
}

From source file:com.opengamma.id.UniqueId.java

@Override
public int hashCode() {
    return _scheme.hashCode() ^ _value.hashCode() ^ ObjectUtils.hashCode(_version);
}

From source file:com.opengamma.engine.ComputationTarget.java

@Override
public int hashCode() {
    if (_hashCode == 0) {
        int hc = 1;
        hc += (hc << 4) + _specification.hashCode();
        hc += (hc << 4) + ObjectUtils.hashCode(_value);
        _hashCode = hc;//from   w w  w . j a  v a  2  s. c  om
    }
    return _hashCode;
}

From source file:de.smartics.maven.plugin.jboss.modules.descriptor.ModuleDescriptor.java

@Override
public int hashCode() {
    int result = 17;
    result = 37 * result + ObjectUtils.hashCode(name);
    result = 37 * result + ObjectUtils.hashCode(slot);

    return result;
}

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

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ObjectUtils.hashCode(getName());
    result = prime * result + ObjectUtils.hashCode(getAllPortfolioRequirements());
    result = prime * result + ObjectUtils.hashCode(getSpecificRequirements());
    result = prime * result + ObjectUtils.hashCode(getDefaultProperties());
    result = prime * result + ObjectUtils.hashCode(getScenarioId());
    result = prime * result + ObjectUtils.hashCode(getScenarioParametersId());
    result = prime * result + ObjectUtils.hashCode(getResolutionRuleTransform());
    return result;
}

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

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

From source file:net.sourceforge.subsonic.util.Pair.java

@Override
public int hashCode() {
    return ObjectUtils.hashCode(first) * ObjectUtils.hashCode(second);
}

From source file:org.apache.asterix.lang.common.expression.AbstractAccessor.java

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

From source file:org.apache.asterix.lang.common.expression.OrderedListTypeDefinition.java

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