Changeset 5132 in josm for trunk/src/org/openstreetmap/josm/tools/Utils.java
- Timestamp:
- 2012-03-29T23:22:07+02:00 (14 years ago)
- File:
-
- 1 edited
-
trunk/src/org/openstreetmap/josm/tools/Utils.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r4816 r5132 23 23 import java.util.Iterator; 24 24 import java.util.List; 25 import org.openstreetmap.josm.data.osm.OsmPrimitive; 25 26 26 27 /** … … 166 167 } 167 168 169 public static String joinAsHtmlUnorderedList(Collection<?> values) { 170 StringBuilder sb = new StringBuilder(1024); 171 sb.append("<ul>"); 172 for (Object i : values) { 173 sb.append("<li>").append(i).append("</li>"); 174 } 175 sb.append("</ul>"); 176 return sb.toString(); 177 } 178 168 179 /** 169 180 * convert Color to String … … 423 434 * @return the transformed unmodifiable collection 424 435 */ 425 public static <A, B> Collection<B> transform(final Collection<A> c, final Function<A, B> f) { 436 public static <A, B> Collection<B> transform(final Collection<? extends A> c, final Function<A, B> f) { 426 437 return new Collection<B>() { 427 438 … … 460 471 return new Iterator<B>() { 461 472 462 private Iterator<A> it = c.iterator(); 473 private Iterator<? extends A> it = c.iterator(); 463 474 464 475 @Override
Note:
See TracChangeset
for help on using the changeset viewer.
