Example usage for java.lang Boolean hashCode

List of usage examples for java.lang Boolean hashCode

Introduction

In this page you can find the example usage for java.lang Boolean hashCode.

Prototype

public static int hashCode(boolean value) 

Source Link

Document

Returns a hash code for a boolean value; compatible with Boolean.hashCode() .

Usage

From source file:com.thinkbiganalytics.metadata.modeshape.support.JcrPath.java

@Override
public int hashCode() {
    return Boolean.hashCode(this.absolute)
            + this.elements.stream().mapToInt(String::hashCode).reduce((h, e) -> h + e).orElse(0);
}

From source file:org.apache.storm.localizer.LocalizedResource.java

@Override
public int hashCode() {
    return getKey().hashCode() + Boolean.hashCode(uncompressed) + baseDir.hashCode();
}

From source file:org.apache.sysml.hops.codegen.cplan.CNodeCell.java

@Override
public int hashCode() {
    if (_hash == 0) {
        int h = super.hashCode();
        h = UtilFunctions.intHashCode(h, _type.hashCode());
        h = UtilFunctions.intHashCode(h, (_aggOp != null) ? _aggOp.hashCode() : 0);
        h = UtilFunctions.intHashCode(h, Boolean.hashCode(_sparseSafe));
        h = UtilFunctions.intHashCode(h, Boolean.hashCode(_requiresCastdtm));
        //note: _multipleConsumers irrelevant for plan comparison
        _hash = h;//from   w w w  . j a va 2s. c o m
    }
    return _hash;
}

From source file:org.apache.sysml.hops.codegen.cplan.CNodeOuterProduct.java

@Override
public int hashCode() {
    if (_hash == 0) {
        int h = UtilFunctions.intHashCode(super.hashCode(), _type.hashCode());
        h = UtilFunctions.intHashCode(h, Boolean.hashCode(_transposeOutput));
        _hash = h;/*from  www. j  av a  2 s  .  c om*/
    }
    return _hash;
}

From source file:org.briljantframework.array.AbstractBooleanArray.java

@Override
public int hashCode() {
    int value = Objects.hash(getShape(), getStride());
    for (int i = 0; i < size(); i++) {
        value = value * 31 + Boolean.hashCode(get(i));
    }/*from w  w  w  .j a v a 2  s  . com*/
    return value;
}

From source file:org.eclipse.smarthome.core.thing.internal.firmware.FirmwareImpl.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((changelog == null) ? 0 : changelog.hashCode());
    result = prime * result + ((description == null) ? 0 : description.hashCode());
    result = prime * result + ((md5Hash == null) ? 0 : md5Hash.hashCode());
    result = prime * result + ((model == null) ? 0 : model.hashCode());
    result = prime * result + Boolean.hashCode(modelRestricted);
    result = prime * result + ((onlineChangelog == null) ? 0 : onlineChangelog.hashCode());
    result = prime * result + ((prerequisiteVersion == null) ? 0 : prerequisiteVersion.hashCode());
    result = prime * result + ((thingTypeUID == null) ? 0 : thingTypeUID.hashCode());
    result = prime * result + ((vendor == null) ? 0 : vendor.hashCode());
    result = prime * result + ((version == null) ? 0 : version.hashCode());
    result = prime * result + ((properties == null) ? 0 : properties.hashCode());
    return result;
}