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:openlr.xml.generated.PathAttributes.java

/**
 * {@inheritDoc}//from w  ww. j a  v a2s .  com
 */
@Override
public final int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(lfrcnp).append(dnp);
    return builder.toHashCode();
}

From source file:openlr.xml.generated.PointAlongLine.java

/**
 * {@inheritDoc}//from w  ww. ja va2  s.c o  m
 */
@Override
public final int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(locationReferencePoint).append(lastLocationReferencePoint).append(offsets).append(sideOfRoad)
            .append(orientation);
    return builder.toHashCode();
}

From source file:openlr.xml.generated.PointLocationReference.java

/**
 * {@inheritDoc}//  w  w w.j  ava 2 s  .c o  m
 */
@Override
public final int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(geoCoordinate).append(pointAlongLine).append(poiWithAccessPoint);
    return builder.toHashCode();
}

From source file:openlr.xml.generated.PoiWithAccessPoint.java

/**
 * {@inheritDoc}/*from  www  . j  a  v  a 2  s.c om*/
 */
@Override
public final int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(locationReferencePoint).append(lastLocationReferencePoint).append(offsets)
            .append(coordinates).append(sideOfRoad).append(orientation);
    return builder.toHashCode();
}

From source file:openlr.xml.generated.PolygonLocationReference.java

/**
 * {@inheritDoc}/*from w  w w .j  a  va2 s  . c o m*/
 */
@Override
public final int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(polygonCorners);
    return builder.toHashCode();
}

From source file:openlr.xml.generated.Rectangle.java

/**
 * {@inheritDoc}//  w  w w . j  a  v a  2s .  co  m
 */
@Override
public final int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(lowerLeft).append(upperRight);
    return builder.toHashCode();
}

From source file:openlr.xml.generated.RectangleLocationReference.java

/**
 * {@inheritDoc}/*from  www  .  j  a  va 2  s.  c om*/
 */
@Override
public final int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(rectangle);
    return builder.toHashCode();
}

From source file:openlr.xml.generated.XMLLocationReference.java

/**
 * {@inheritDoc}//from   w w  w  .  j  av  a2s .co  m
 */
@Override
public final int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(lineLocationReference).append(pointLocationReference).append(areaLocationReference);
    return builder.toHashCode();
}

From source file:org.apache.accumulo.core.client.BatchWriterConfig.java

@Override
public int hashCode() {
    HashCodeBuilder hcb = new HashCodeBuilder();
    hcb.append(maxMemory).append(maxLatency).append(maxWriteThreads).append(timeout).append(durability);
    return hcb.toHashCode();
}

From source file:org.apache.accumulo.core.client.impl.AuthenticationTokenIdentifier.java

@Override
public int hashCode() {
    if (null == impl) {
        return 0;
    }// w w  w .  j a  va  2 s  .co m
    HashCodeBuilder hcb = new HashCodeBuilder(7, 11);
    if (impl.isSetPrincipal()) {
        hcb.append(impl.getPrincipal());
    }
    if (impl.isSetKeyId()) {
        hcb.append(impl.getKeyId());
    }
    if (impl.isSetIssueDate()) {
        hcb.append(impl.getIssueDate());
    }
    if (impl.isSetExpirationDate()) {
        hcb.append(impl.getExpirationDate());
    }
    if (impl.isSetInstanceId()) {
        hcb.append(impl.getInstanceId());
    }
    return hcb.toHashCode();
}