Changeset 8470 in josm for trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
- Timestamp:
- 2015-06-06T04:32:00+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r8443 r8470 78 78 * Replies all primitives of type <code>type</code> in the current selection. 79 79 * 80 * @param <T>81 80 * @param type the type 82 81 * @return all primitives of type <code>type</code> in the current selection. 83 82 */ 84 protected <T extends PrimitiveData>Collection<? extends PrimitiveData> getSourcePrimitivesByType(OsmPrimitiveType type) {83 protected Collection<? extends PrimitiveData> getSourcePrimitivesByType(OsmPrimitiveType type) { 85 84 return PrimitiveData.getFilteredList(source, type); 86 85 } … … 90 89 * selection 91 90 * 92 * @param <T>93 91 * @param type the type 94 92 * @return the collection of tags for all primitives of type <code>type</code> in the current 95 93 * selection 96 94 */ 97 protected <T extends OsmPrimitive>TagCollection getSourceTagsByType(OsmPrimitiveType type) {95 protected TagCollection getSourceTagsByType(OsmPrimitiveType type) { 98 96 return TagCollection.unionOfAllPrimitives(getSourcePrimitivesByType(type)); 99 97 } … … 103 101 * type <code>type</code> 104 102 * 105 * @param <T>106 103 * @param type the type 107 104 * @return true if there is at least one tag in the current selection for primitives of 108 105 * type <code>type</code> 109 106 */ 110 protected <T extends OsmPrimitive>boolean hasSourceTagsByType(OsmPrimitiveType type) {107 protected boolean hasSourceTagsByType(OsmPrimitiveType type) { 111 108 return !getSourceTagsByType(type).isEmpty(); 112 109 } … … 177 174 * is in the target collection 178 175 * 179 * @param <T>180 176 * @param type the type to look for 181 177 * @return true if there is at least one primitive of type <code>type</code> in the collection 182 178 * <code>selection</code> 183 179 */ 184 protected <T extends OsmPrimitive> boolean hasTargetPrimitives(Class<T> type) {180 protected boolean hasTargetPrimitives(Class<? extends OsmPrimitive> type) { 185 181 return !OsmPrimitive.getFilteredList(target, type).isEmpty(); 186 182 } … … 301 297 /** 302 298 * Create and execute SequenceCommand with descriptive title 303 * @param commands 299 * @param commands the commands to perform in a sequential command 304 300 */ 305 301 private static void commitCommands(Collection<OsmPrimitive> selection, List<Command> commands) {
Note:
See TracChangeset
for help on using the changeset viewer.