code: public static boolean touches(Geometry geometry, Coordinate coordinate) {
  		if (Geometry.MULTI_POLYGON.equals(geometry.getGeometryType())) {
  			for (int i = 0; i < geometry.getGeometries().length; i++) {
  				if (touches(geometry.getGeometries()[i], coordinate)) {
  					return true;
  				}
  			}
  			return false;
  		} else if (Geometry.POLYGON.equals(geometry.getGeometryType())) {
  			for (int i = 0; i < geometry.getGeometries().length; i++) {
  				if (touchesLineString(geometry.getGeometries()[i], coordinate)) {
  					return true;
  				}
  			}
  			return false;
  		} else if (Geometry.MULTI_LINE_STRING.equals(geometry.getGeometryType())) {
  			for (int i = 0; i < geometry.getGeometries().length; i++) {
  				if (touchesLineString(geometry.getGeometries()[i], coordinate)) {
  					return true;
  				}
  			}
  			return false;
  		} else if (Geometry.LINEAR_RING.equals(geometry.getGeometryType())) {
  			return touchesLineString(geometry, coordinate);
  		} else if (Geometry.LINE_STRING.equals(geometry.getGeometryType())) {
  			return touchesLineString(geometry, coordinate);
  		} else if (Geometry.POINT.equals(geometry.getGeometryType())) {
  			return distance(geometry.getCoordinates()[0], coordinate) < PARAM_DEFAULT_DELTA;
  		}
  		return false;
  	}
docs: Does a certain coordinate touch a given geometry?
  
  @param geometry The geometry to check against.
  @param coordinate The position to check.
  @return Returns true if the coordinate touches the geometry.