private StringBuilder toStringBuilder(final SRID srid) { return new StringBuilder(dimension.name().toLowerCase()).append('\''). append("SRID=").append(srid).append(';'); }
@Override public int hashCode() { int result = dimension != null ? dimension.hashCode() : 0; result = 31 * result + (value != null ? value.hashCode() : 0); result = 31 * result + (variable != null ? variable.hashCode() : 0); return result; }
private Matcher getMatcher(final Pattern pattern, final String value) throws EdmPrimitiveTypeException { final Matcher matcher = pattern.matcher(value); if (!matcher.matches()) { throw new EdmPrimitiveTypeException("The literal '" + value + "' has illegal content."); } Geospatial.Dimension _dimension = null; Geospatial.Type _type = null; try { _dimension = Geospatial.Dimension.valueOf(matcher.group(1).toUpperCase()); _type = Geospatial.Type.valueOf(matcher.group(3).toUpperCase()); } catch (IllegalArgumentException e) { throw new EdmPrimitiveTypeException("The literal '" + value + "' has illegal content.", e); } if (_dimension != this.dimension || (!pattern.equals(COLLECTION_PATTERN) && _type != this.type)) { throw new EdmPrimitiveTypeException("The literal '" + value + "' has illegal content."); } return matcher; }
private Matcher getMatcher(final Pattern pattern, final String value) throws EdmPrimitiveTypeException { final Matcher matcher = pattern.matcher(value); if (!matcher.matches()) { throw new EdmPrimitiveTypeException("The literal '" + value + "' has illegal content."); } Geospatial.Dimension _dimension = null; Geospatial.Type _type = null; try { _dimension = Geospatial.Dimension.valueOf(matcher.group(1).toUpperCase()); _type = Geospatial.Type.valueOf(matcher.group(3).toUpperCase()); } catch (IllegalArgumentException e) { throw new EdmPrimitiveTypeException("The literal '" + value + "' has illegal content.", e); } if (_dimension != this.dimension || (!pattern.equals(COLLECTION_PATTERN) && _type != this.type)) { throw new EdmPrimitiveTypeException("The literal '" + value + "' has illegal content."); } return matcher; }
@Override public String toString() { return (dimension == null ? "" : dimension.name()) + '\'' + (srid == null ? "" : "SRID=" + srid.toString() + ';') + "Point(" + x + ' ' + y + ")'"; } }
@Override public int hashCode() { int result = dimension != null ? dimension.hashCode() : 0; result = 31 * result + (value != null ? value.hashCode() : 0); result = 31 * result + (variable != null ? variable.hashCode() : 0); return result; }
@Override public String toString() { return (dimension == null ? "" : dimension.name()) + '\'' + (srid == null ? "" : "SRID=" + srid.toString() + ';') + "Point(" + x + ' ' + y + ")'"; } }
@Override public int hashCode() { int result = dimension == null ? 0 : dimension.hashCode(); result = 31 * result + (srid == null ? 0 : srid.hashCode()); result = 31 * result + Double.valueOf(x).hashCode(); result = 31 * result + Double.valueOf(y).hashCode(); result = 31 * result + Double.valueOf(z).hashCode(); return result; }
@Override public int hashCode() { int result = dimension == null ? 0 : dimension.hashCode(); result = 31 * result + (srid == null ? 0 : srid.hashCode()); result = 31 * result + (interiorRings == null ? 0 : interiorRings.hashCode()); result = 31 * result + (exterior == null ? 0 : exterior.hashCode()); return result; } }
@Override public int hashCode() { int result = dimension == null ? 0 : dimension.hashCode(); result = 31 * result + (srid == null ? 0 : srid.hashCode()); result = 31 * result + geospatials.hashCode(); return result; }
@Override public int hashCode() { int result = dimension == null ? 0 : dimension.hashCode(); result = 31 * result + (srid == null ? 0 : srid.hashCode()); result = 31 * result + (interior == null ? 0 : interior.hashCode()); result = 31 * result + (exterior == null ? 0 : exterior.hashCode()); return result; } }
@Override public int hashCode() { int result = dimension == null ? 0 : dimension.hashCode(); result = 31 * result + (srid == null ? 0 : srid.hashCode()); result = 31 * result + geospatials.hashCode(); return result; }
private StringBuilder toStringBuilder(final SRID srid) { return new StringBuilder(dimension.name().toLowerCase()).append('\''). append("SRID=").append(srid).append(';'); }
@Override public int hashCode() { int result = dimension == null ? 0 : dimension.hashCode(); result = 31 * result + (srid == null ? 0 : srid.hashCode()); result = 31 * result + Double.valueOf(x).hashCode(); result = 31 * result + Double.valueOf(y).hashCode(); result = 31 * result + Double.valueOf(z).hashCode(); return result; }