Example usage for org.apache.commons.lang.builder HashCodeBuilder append

List of usage examples for org.apache.commons.lang.builder HashCodeBuilder append

Introduction

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

Prototype

public HashCodeBuilder append(short[] array) 

Source Link

Document

Append a hashCode for a short array.

Usage

From source file:at.thinkingco2.databasemanager.databeans.JourneyBean.java

@Override
public int hashCode() {
    HashCodeBuilder hb = new HashCodeBuilder(97, 103);

    hb.append(getDescription());
    hb.append(getStart());//from w w  w  .  jav a 2 s.c om
    hb.append(getDestination());
    hb.append(getArrivleTime());
    hb.append(getLicenseNumber());

    return hb.toHashCode();
}

From source file:de.innovationgate.wgpublisher.webtml.portlet.PortletEvent.java

public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(_name);
    return builder.toHashCode();
}

From source file:com.autentia.tnt.businessobject.ExternalActivity.java

@Override
public int hashCode() {
    final HashCodeBuilder hcb = new HashCodeBuilder();
    hcb.append(getName());
    hcb.append(getCategory());/*from  w  w w . jav  a 2s. c om*/
    hcb.append(getStartDate());
    hcb.append(getEndDate());
    hcb.append(getLocation());
    hcb.append(getOrganizer());
    hcb.append(getComments());
    hcb.append(getInsertDate());
    hcb.append(getUpdateDate());
    hcb.append(getDocumentCategory());
    hcb.append(getDepartmentId());
    hcb.append(getOwnerId());

    return hcb.toHashCode();
}

From source file:com.redhat.rhn.domain.config.ConfigChannel.java

/**
 *
 * {@inheritDoc}// w w w  . j  a  v a  2s  .c  om
 */
public int hashCode() {
    // The id field has been intentionally ignored here
    // because for a new object the id can be null
    // The label, name, org_id, channel type uniquely identify a Channel
    HashCodeBuilder builder = new HashCodeBuilder();

    builder.append(this.getOrg());
    builder.append(this.getName());
    builder.append(this.getLabel());
    builder.append(this.getConfigChannelType());

    return builder.toHashCode();
}

From source file:net.kamhon.ieagle.function.user.vo.UserLoc.java

public int hashCode() {
    HashCodeBuilder hashCode = new HashCodeBuilder();
    if (locId != null)
        hashCode.append(locId);
    return hashCode.toHashCode();
}

From source file:jenkins.plugins.publish_over.BapPublisher.java

protected HashCodeBuilder addToHashCode(final HashCodeBuilder builder) {
    return builder.append(configName).append(verbose).append(transfers).append(useWorkspaceInPromotion)
            .append(usePromotionTimestamp).append(retry).append(label).append(credentials);
}

From source file:eu.datex2.schema._2_0rc2._2_0.HeaderInformation.java

/**
 * Hash code.//from w w w. ja v a  2s  .  com
 *
 * @param hashCodeBuilder the hash code builder
 */
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getAreaOfInterest());
    hashCodeBuilder.append(this.getConfidentiality());
    hashCodeBuilder.append(this.getInformationStatus());
    hashCodeBuilder.append(this.getUrgency());
    hashCodeBuilder.append(this.getHeaderInformationExtension());
}

From source file:com.redhat.rhn.domain.rhnpackage.PackageFile.java

/**
 *
 * {@inheritDoc}/*from   w  ww .j  a  v a2s  .co  m*/
 */
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(this.getPack());
    hash.append(this.getCapability());
    return hash.toHashCode();
}

From source file:keel.Algorithms.Neural_Networks.NNEP_Common.neuralnet.InputLayer.java

/**
 * <p>/*from  w w w. j a  v a2 s.c o  m*/
* Returns an integer number that identifies the layer
* </p>
* @return int Hashcode
*/
public int hashCode() {
    HashCodeBuilder hcb = new HashCodeBuilder(41, 43);
    for (INeuron neuron : neurons)
        hcb.append(neuron);
    return hcb.toHashCode();
}

From source file:com.redhat.rhn.domain.server.GuestAndNonVirtHostView.java

/**
 *
 * {@inheritDoc}/*ww w.j  av  a 2s.  co m*/
 */
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder().append(guestSystemId).append(guestOrgId).append(guestName);

    if (guestAndHostInSameOrg()) {
        builder.append(hostOrgId).append(hostId).append(hostName);
    }

    return builder.toHashCode();
}