List of usage examples for org.apache.commons.lang.builder HashCodeBuilder append
public HashCodeBuilder append(short[] array)
Append a hashCode
for a short
array.
From source file:openlr.location.CircleLocation.java
/** * {@inheritDoc}//from w w w . j a v a2 s . c o m */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(locType).append(center).append(radius); return builder.toHashCode(); }
From source file:openlr.location.ClosedLineLocation.java
/** * {@inheritDoc}// w w w.j a va 2 s. c om */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(locType).append(lines); return builder.toHashCode(); }
From source file:openlr.location.GeoCoordLocation.java
/** * {@inheritDoc}//www.j av a 2 s .c om */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(locType).append(poi); return builder.toHashCode(); }
From source file:openlr.location.GridLocation.java
/** * {@inheritDoc}/*from w w w. j a v a 2 s.c om*/ */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(locType).append(corners).append(corners).append(numberOfColumns).append(numberOfRows); return builder.toHashCode(); }
From source file:openlr.location.InvalidLocation.java
/** * {@inheritDoc}//from w ww . ja va2 s . co m */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(negativeOffset).append(positiveOffset).append(geoCoord).append(accessPoint) .append(sideOfRoad).append(orientation).append(lines).append(subRouteList).append(locType); return builder.toHashCode(); }
From source file:openlr.location.LineLocation.java
/** * {@inheritDoc}//w w w.j a va 2 s .co m */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(posOff).append(lines).append(negOff).append(locType); return builder.toHashCode(); }
From source file:openlr.location.PoiAccessLocation.java
/** * {@inheritDoc}//from w w w .j a v a 2s.c o m */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(posOff).append(lineForPoint).append(poi).append(access).append(sideOfRoad) .append(orientation).append(locType); return builder.toHashCode(); }
From source file:openlr.location.PointAlongLocation.java
/** * {@inheritDoc}//www . j a v a 2s. co m */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(posOff).append(lineForPoint).append(access).append(sideOfRoad).append(orientation) .append(locType); return builder.toHashCode(); }
From source file:openlr.location.PolygonLocation.java
/** * {@inheritDoc}// w w w . ja v a 2s. com */ @Override public final int calculateHashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(locType).append(corners); return builder.toHashCode(); }
From source file:openlr.map.GeoCoordinatesImpl.java
/** * {@inheritDoc}//from ww w. j av a2 s. com */ @Override public final int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(latitude).append(longitude); return builder.toHashCode(); }