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

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

Introduction

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

Prototype

public int toHashCode() 

Source Link

Document

Return the computed hashCode.

Usage

From source file:nl.mpi.lamus.workspace.model.implementation.LamusWorkspace.java

@Override
public int hashCode() {

    HashCodeBuilder hashCodeB = new HashCodeBuilder().append(this.workspaceID).append(this.userID)
            .append(this.topNodeID).append(this.topNodeArchiveURI).append(this.topNodeArchiveURL)
            .append(this.startDate).append(this.endDate).append(this.sessionStartDate)
            .append(this.sessionEndDate).append(this.usedStorageSpace).append(this.maxStorageSpace);

    if (this.status != null) {
        hashCodeB.append(this.status);
    }/*from   w ww  .j a  v a2 s . co  m*/
    if (this.message != null) {
        hashCodeB.append(this.message);
    }
    if (this.crawlerID != null) {
        hashCodeB.append(this.crawlerID);
    }

    return hashCodeB.toHashCode();
}

From source file:nl.mpi.lamus.workspace.model.implementation.LamusWorkspaceNode.java

@Override
public int hashCode() {

    HashCodeBuilder hashCodeB = new HashCodeBuilder().append(this.workspaceNodeID).append(this.workspaceID)
            .append(this.profileSchemaURI).append(this.name).append(this.title).append(this.type)
            .append(this.workspaceURL).append(this.archiveURI).append(this.archiveURL).append(this.originURI)
            .append(this.status).append(this.isProtected).append(this.format);

    return hashCodeB.toHashCode();
}

From source file:nl.mpi.lamus.workspace.model.implementation.LamusWorkspaceNodeLink.java

@Override
public int hashCode() {

    HashCodeBuilder hashCodeB = new HashCodeBuilder().append(this.parentWorkspaceNodeID)
            .append(this.childWorkspaceNodeID);

    return hashCodeB.toHashCode();
}

From source file:nl.mpi.lamus.workspace.model.implementation.LamusWorkspaceNodeReplacement.java

@Override
public int hashCode() {

    HashCodeBuilder hashCodeB = new HashCodeBuilder().append(this.oldNodeURI).append(this.newNodeURI)
            .append(this.replacementStatus).append(this.replacementError);

    return hashCodeB.toHashCode();
}

From source file:nl.mpi.lamus.workspace.model.implementation.LamusWorkspaceReplacedNodeUrlUpdate.java

@Override
public int hashCode() {

    HashCodeBuilder hashCodeB = new HashCodeBuilder().append(this.nodeUri).append(this.updatedUrl)
            .append(this.updateStatus).append(this.updateError);

    return hashCodeB.toHashCode();
}

From source file:nl.mpi.lamus.workspace.upload.implementation.ZipUploadResult.java

@Override
public int hashCode() {

    HashCodeBuilder hashCodeB = new HashCodeBuilder().append(this.successfulUploads).append(this.failedUploads);

    return hashCodeB.toHashCode();
}

From source file:org.apache.cassandra.db.ColumnFamily.java

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder(373, 75437).append(metadata).append(deletionInfo());
    for (Cell cell : this)
        builder.append(cell);/*from   w  w  w  .  j a v  a2  s.c  o  m*/
    return builder.toHashCode();
}

From source file:org.apache.cassandra.thrift.CASResult.java

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();

    boolean present_success = true;
    builder.append(present_success);//from  w  ww .j a va  2 s  .co  m
    if (present_success)
        builder.append(success);

    boolean present_current_values = true && (isSetCurrent_values());
    builder.append(present_current_values);
    if (present_current_values)
        builder.append(current_values);

    return builder.toHashCode();
}

From source file:org.apache.cassandra.thrift.CfSplit.java

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();

    boolean present_start_token = true && (isSetStart_token());
    builder.append(present_start_token);
    if (present_start_token)
        builder.append(start_token);//  www  . ja v a2s .c  om

    boolean present_end_token = true && (isSetEnd_token());
    builder.append(present_end_token);
    if (present_end_token)
        builder.append(end_token);

    boolean present_row_count = true;
    builder.append(present_row_count);
    if (present_row_count)
        builder.append(row_count);

    return builder.toHashCode();
}

From source file:org.apache.cassandra.thrift.ColumnSlice.java

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();

    boolean present_start = true && (isSetStart());
    builder.append(present_start);/*from   www  .j a  v a2s.  com*/
    if (present_start)
        builder.append(start);

    boolean present_finish = true && (isSetFinish());
    builder.append(present_finish);
    if (present_finish)
        builder.append(finish);

    return builder.toHashCode();
}