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:eu.datex2.schema._2_0rc2._2_0.OpenlrPointLocationReference.java

/**
 * Hash code.//w ww .  java2 s .c  o  m
 * 
 * @param hashCodeBuilder
 *            the hash code builder
 */
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getOpenlrGeoCoordinate());
    hashCodeBuilder.append(this.getOpenlrPoiWithAccessPoint());
    hashCodeBuilder.append(this.getOpenlrPointAlongLine());
    hashCodeBuilder.append(this.getOpenlrPointLocationReferenceExtension());
}

From source file:ch.puzzle.itc.mobiliar.business.resourcerelation.entity.AbstractResourceRelationEntity.java

@Override
public int foreignableFieldHashCode() {
    HashCodeBuilder eb = new HashCodeBuilder();

    eb.append(this.id);
    eb.append(this.fcOwner);
    eb.append(this.fcExternalKey);
    eb.append(this.fcExternalLink);
    eb.append(this.identifier);
    eb.append(this.masterResource != null ? this.masterResource.getId() : null);
    eb.append(this.slaveResource != null ? this.slaveResource.getId() : null);
    eb.append(foreignableRelationFieldHashCode());
    return eb.toHashCode();
}

From source file:com.web.vehiclerouting.optaplanner.domain.VehicleRoutingSolution.java

public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    for (Customer customer : customerList) {
        // Notice: we don't use hashCode()
        hashCodeBuilder.append(customer.solutionHashCode());
    }/*ww  w . ja v  a  2  s  . c o m*/
    return hashCodeBuilder.toHashCode();
}

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

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

From source file:com.sun.socialsite.pojos.ProfileProperty.java

@Override
public int hashCode() {
    HashCodeBuilder hcb = new HashCodeBuilder().append(id);
    if (profile != null)
        hcb.append(profile.getUserId());
    else/*from w ww.j  a v  a2s  . co m*/
        hcb.append("null");
    return hcb.toHashCode();
}

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

/**
 * Hash code.// w  w w . j av a2s .  c  o  m
 * 
 * @param hashCodeBuilder
 *            the hash code builder
 */
public void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getPublicationTime());
    hashCodeBuilder.append(this.getPublicationCreator());
    hashCodeBuilder.append(this.getPayloadPublicationExtension());
    hashCodeBuilder.append(this.getLang());
}

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

/**
 * Hash code.//from  www.j av a2 s .c  om
 *
 * @param hashCodeBuilder the hash code builder
 */
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getOpenlrLocationReferencePoint());
    hashCodeBuilder.append(this.getOpenlrLastLocationReferencePoint());
    hashCodeBuilder.append(this.getOpenlrOffsets());
    hashCodeBuilder.append(this.getOpenlrLineLocationReferenceExtension());
}

From source file:ch.systemsx.cisd.openbis.generic.shared.dto.EntityPropertyPE.java

@Override
public final int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(getEntity());
    builder.append(getEntityTypePropertyType());
    return builder.toHashCode();
}

From source file:keel.Algorithms.Neural_Networks.NNEP_Common.util.random.RanNnep.java

/**
 * <p>//from  w  w  w  .  jav  a2 s .  c om
 * Returns a hashcode identifier of the random generator
 * </p>
 * @return int Hashcode identifier
 */
public int hashCode() {
    HashCodeBuilder hcb = new HashCodeBuilder(41, 43);
    // Append a value
    hcb.append(a);
    // Append b value
    hcb.append(b);
    // Return hashcode
    return hcb.toHashCode();
}

From source file:de.iteratec.iteraplan.model.attribute.EnumAV.java

@Override
public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.appendSuper(super.hashCode());
    hashCodeBuilder.append(name);
    return hashCodeBuilder.toHashCode();
}