Example usage for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder

List of usage examples for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder.

Prototype

public HashCodeBuilder() 

Source Link

Document

Uses two hard coded choices for the constants needed to build a hashCode.

Usage

From source file:com.hp.ov.sdk.dto.serverhardwaretype.StorageCapabilities.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(controllerModes).append(driveTechnologies).append(maximumDrives)
            .append(raidLevels).toHashCode();
}

From source file:com.deegeu.facebook.messenger.model.receive.Postback.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(payload).append(referral).toHashCode();
}

From source file:com.deegeu.facebook.messenger.model.receive.MessageResponse.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(object).append(entry).toHashCode();
}

From source file:com.blackducksoftware.ohcount4j.Diff.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(codeLinesAdded).append(codeLinesRemoved).append(commentLinesAdded)
            .append(commentLinesRemoved).append(blankLinesAdded).append(blankLinesRemoved).toHashCode();
}

From source file:com.hp.ov.sdk.dto.NetworkResponse.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(interconnectUri).append(name).append(networkType).append(uri)
            .toHashCode();/* w  w  w.ja  v a  2s.  c o  m*/
}

From source file:com.github.jgility.core.planning.Iteration.java

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(super.hashCode());
    builder.append(iterationBacklog);//from  www .j av a2  s .  c o m
    return builder.toHashCode();
}

From source file:com.deegeu.facebook.messenger.model.receive.Payload.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(coordinates).append(url).toHashCode();
}

From source file:com.lexicalscope.fluentreflection.BoundFluentMemberImpl.java

@Override
public final int hashCode() {
    return new HashCodeBuilder().append(instance).append(member).toHashCode();
}

From source file:com.norconex.collector.http.url.Link.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(url).append(tag).append(text).append(title).append(referrer)
            .toHashCode();//from www  .j ava2  s  .  co m
}

From source file:io.neba.core.util.OsgiModelSource.java

/**
 * @param modelDefinition must not be <code>null</code>.
 * @param factory         must not be <code>null</code>.
 * @param bundle          must not be <code>null</code>.
 *///from  www.  j a va 2  s  .co m
public OsgiModelSource(ModelDefinition modelDefinition, ResourceModelFactory factory, Bundle bundle) {
    if (modelDefinition == null) {
        throw new IllegalArgumentException("Method argument modelDefinition must not be null.");
    }
    if (factory == null) {
        throw new IllegalArgumentException("Method argument factory must not be null.");
    }
    if (bundle == null) {
        throw new IllegalArgumentException("Method argument bundle must not be null.");
    }

    // Referencing the definition is safe: It either stems from the source bundle, or a bundle the source bundle depends on
    // via an import-package relationship. Thus, if the type changes, the source bundle is re-loaded as well thus
    // causing this model source to be re-created.
    this.modelDefinition = modelDefinition;
    this.factory = factory;
    this.bundleId = bundle.getBundleId();
    this.bundle = bundle;
    this.hashCode = new HashCodeBuilder().append(this.modelDefinition.getName()).append(bundleId).toHashCode();
}