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:de.iteratec.iteraplan.model.attribute.RangeValue.java

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

    if (getId() == null) {
        builder.append(super.hashCode());
    } else {//from   ww  w . j av a 2 s.c  om
        builder.append(getId());
    }

    return builder.toHashCode();
}

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

/**
 * {@inheritDoc}//from   ww w . ja v a  2s . c  o m
 */
@Override
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    super.hashCode(hashCodeBuilder);
    hashCodeBuilder.append(this.getSituation());
    hashCodeBuilder.append(this.getSituationPublicationExtension());
}

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

/**
 * {@inheritDoc}//from   ww  w .  j a  v  a 2 s  .c  o m
 */
@Override
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    super.hashCode(hashCodeBuilder);
    hashCodeBuilder.append(this.getAccidentType());
    hashCodeBuilder.append(this.getAccidentExtension());
}

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

/**
 * <p>//w  w w .  j  av  a2  s .  c om
 * Returns an integer number that identifies the link
 * </p>
 * @return int Hashcode
 */
public int hashCode() {

    HashCodeBuilder hcb = new HashCodeBuilder(23, 29);
    hcb.append(weight);
    hcb.append(broken);
    hcb.append(origin);
    return hcb.toHashCode();

}

From source file:net.kamhon.ieagle.function.email.vo.Emailq.java

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

From source file:de.iteratec.iteraplan.businesslogic.exchange.legacyExcel.importer.BuildingBlockHolder.java

@Override
public int hashCode() {
    final HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append(buildingBlock);
    hashCodeBuilder.append(buildingBlockNameCell);
    hashCodeBuilder.append(buildingBlockId);
    hashCodeBuilder.append(buildingBlockDescriptionCell);
    hashCodeBuilder.append(nameMarker);/* www  . j av a  2  s .c  o m*/
    hashCodeBuilder.append(descriptionMarker);

    return hashCodeBuilder.toHashCode();
}

From source file:de.iteratec.iteraplan.model.user.User.java

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    return builder.appendSuper(super.hashCode()).append(dataSource).append(firstName).append(lastName)
            .append(loginName).toHashCode();
}

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

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

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

/**
 * Hash code./*w  ww . j  av  a  2 s . c  om*/
 *
 * @param hashCodeBuilder the hash code builder
 */
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getOpenlrFunctionalRoadClass());
    hashCodeBuilder.append(this.getOpenlrFormOfWay());
    hashCodeBuilder.append(this.getOpenlrBearing());
    hashCodeBuilder.append(this.getOpenlrLineAttributesExtension());
}

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

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