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:ch.systemsx.cisd.openbis.generic.shared.dto.NewExternalData.java

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

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

/**
 * Hash code./*  w w  w .j  a v a  2s  .  c o  m*/
 * 
 * @param hashCodeBuilder
 *            the hash code builder
 */
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getLatitude());
    hashCodeBuilder.append(this.getLongitude());
    hashCodeBuilder.append(this.getPointCoordinatesExtension());
}

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

/**
 * <p>/*ww  w. j  ava 2s  .com*/
* Returns an integer number that identifies the neuron
* </p>
* @return int Hashcode
*/
public int hashCode() {
    HashCodeBuilder hcb = new HashCodeBuilder(31, 37);
    hcb.append(index);
    return hcb.toHashCode();
}

From source file:com.vmware.bdd.apitypes.UserMgmtServer.java

@Override
public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append(name).append(type).append(baseGroupDn).append(baseUserDn).append(primaryUrl)
            .append(secondaryUrl).append(userName).append(password).append(mgmtVMUserGroupDn);

    return hashCodeBuilder.hashCode();
}

From source file:com.xwtec.xwserver.util.json.JSONFunction.java

public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    for (int i = 0; i < params.length; i++) {
        builder.append(params[i]);
    }//from  w ww. j  a  v a2 s .  c  o  m
    builder.append(text);
    return builder.toHashCode();
}

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

/**
 * Hash code.// w  w w .  j  ava2s  .  c om
 *
 * @param hashCodeBuilder the hash code builder
 */
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getCountry());
    hashCodeBuilder.append(this.getNationalIdentifier());
    hashCodeBuilder.append(this.getInternationalIdentifierExtension());
}

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

/**
 * Hash code./*www . ja  va  2  s. com*/
 * 
 * @param hashCodeBuilder
 *            the hash code builder
 */
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getValidityStatus());
    hashCodeBuilder.append(this.getValidityTimeSpecification());
    hashCodeBuilder.append(this.getValidityExtension());
}

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

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

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

/**
 * Hash code./*from w w  w .  j ava2 s.  com*/
 *
 * @param hashCodeBuilder the hash code builder
 */
public final void hashCode(final HashCodeBuilder hashCodeBuilder) {
    hashCodeBuilder.append(this.getOpenlrPositiveOffset());
    hashCodeBuilder.append(this.getOpenlrNegativeOffset());
    hashCodeBuilder.append(this.getOpenlrOffsetsExtension());
}

From source file:com.qagen.osfe.dataAccess.vo.Feed.java

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder(17, 37);
    builder.append(feedId);
    return builder.toHashCode();
}