Changeset 8291 in josm for trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java
- Timestamp:
- 2015-04-29T01:44:01+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java
r7303 r8291 32 32 * @param query the query part 33 33 * @return the query object 34 * @throws ChangesetQueryUrlException thrown if query doesn't consist of valid query parameters 35 * 34 * @throws ChangesetQueryUrlException if query doesn't consist of valid query parameters 36 35 */ 37 36 public static ChangesetQuery buildFromUrlQuery(String query) throws ChangesetQueryUrlException{ … … 67 66 * @param uid the uid of the user. > 0 expected. 68 67 * @return the query object with the applied restriction 69 * @throws IllegalArgumentException thrownif uid <= 068 * @throws IllegalArgumentException if uid <= 0 70 69 * @see #forUser(String) 71 70 */ 72 public ChangesetQuery forUser(int uid) throws IllegalArgumentException{71 public ChangesetQuery forUser(int uid) { 73 72 if (uid <= 0) 74 73 throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0 expected. Got ''{1}''.", "uid", uid)); … … 86 85 * @param username the username. Must not be null. 87 86 * @return the query object with the applied restriction 88 * @throws IllegalArgumentException thrownif username is null.87 * @throws IllegalArgumentException if username is null. 89 88 * @see #forUser(int) 90 89 */ … … 133 132 * 134 133 * @return the restricted changeset query 135 * @throws IllegalArgumentException thrownif either of the parameters isn't a valid longitude or134 * @throws IllegalArgumentException if either of the parameters isn't a valid longitude or 136 135 * latitude value 137 136 */ 138 public ChangesetQuery inBbox(double minLon, double minLat, double maxLon, double maxLat) throws IllegalArgumentException{137 public ChangesetQuery inBbox(double minLon, double minLat, double maxLon, double maxLat) { 139 138 if (!LatLon.isValidLon(minLon)) 140 139 throw new IllegalArgumentException(tr("Illegal longitude value for parameter ''{0}'', got {1}", "minLon", minLon)); … … 156 155 * 157 156 * @return the restricted changeset query 158 * @throws IllegalArgumentException thrownif min is null159 * @throws IllegalArgumentException thrownif max is null157 * @throws IllegalArgumentException if min is null 158 * @throws IllegalArgumentException if max is null 160 159 */ 161 160 public ChangesetQuery inBbox(LatLon min, LatLon max) { … … 171 170 * @param bbox the bounding box. Must not be null. 172 171 * @return the changeset query 173 * @throws IllegalArgumentException thrownif bbox is null.174 */ 175 public ChangesetQuery inBbox(Bounds bbox) throws IllegalArgumentException{172 * @throws IllegalArgumentException if bbox is null. 173 */ 174 public ChangesetQuery inBbox(Bounds bbox) { 176 175 CheckParameterUtil.ensureParameterNotNull(bbox, "bbox"); 177 176 this.bounds = bbox; … … 185 184 * @param d the date . Must not be null. 186 185 * @return the restricted changeset query 187 * @throws IllegalArgumentException thrownif d is null188 */ 189 public ChangesetQuery closedAfter(Date d) throws IllegalArgumentException{186 * @throws IllegalArgumentException if d is null 187 */ 188 public ChangesetQuery closedAfter(Date d) { 190 189 CheckParameterUtil.ensureParameterNotNull(d, "d"); 191 190 this.closedAfter = d; … … 201 200 * @param createdBefore only reply changesets created before this date. Must not be null. 202 201 * @return the restricted changeset query 203 * @throws IllegalArgumentException thrownif closedAfter is null204 * @throws IllegalArgumentException thrownif createdBefore is null205 */ 206 public ChangesetQuery closedAfterAndCreatedBefore(Date closedAfter, Date createdBefore ) throws IllegalArgumentException{202 * @throws IllegalArgumentException if closedAfter is null 203 * @throws IllegalArgumentException if createdBefore is null 204 */ 205 public ChangesetQuery closedAfterAndCreatedBefore(Date closedAfter, Date createdBefore ) { 207 206 CheckParameterUtil.ensureParameterNotNull(closedAfter, "closedAfter"); 208 207 CheckParameterUtil.ensureParameterNotNull(createdBefore, "createdBefore"); … … 241 240 * @param changesetIds the changeset ids 242 241 * @return the query object with the applied restriction 243 * @throws IllegalArgumentException thrownif changesetIds is null.242 * @throws IllegalArgumentException if changesetIds is null. 244 243 */ 245 244 public ChangesetQuery forChangesetIds(Collection<Long> changesetIds) {
Note:
See TracChangeset
for help on using the changeset viewer.