Changeset 10689 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-07-31T14:11:38+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java
r10626 r10689 16 16 import java.util.Date; 17 17 import java.util.TreeSet; 18 import java.util.function.Function; 18 19 import java.util.regex.Matcher; 19 20 import java.util.regex.Pattern; … … 34 35 import org.openstreetmap.josm.io.OsmTransferException; 35 36 import org.openstreetmap.josm.io.auth.CredentialsManager; 36 import org.openstreetmap.josm.tools.Utils.Function;37 37 import org.openstreetmap.josm.tools.date.DateUtils; 38 38 -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r10680 r10689 770 770 @Deprecated 771 771 @FunctionalInterface 772 public interface Function<A, B> { 772 public interface Function<A, B> extends java.util.function.Function<A, B> { 773 773 774 774 /** … … 777 777 * @return the transformed object 778 778 */ 779 @Override 779 780 B apply(A x); 780 781 } … … 789 790 * @return the transformed unmodifiable collection 790 791 */ 791 public static <A, B> Collection<B> transform(final Collection<? extends A> c, final Function<A, B> f) { 792 public static <A, B> Collection<B> transform(final Collection<? extends A> c, final java.util.function.Function<A, B> f) { 792 793 return new AbstractCollection<B>() { 793 794 … … 831 832 * @return the transformed unmodifiable list 832 833 */ 833 public static <A, B> List<B> transform(final List<? extends A> l, final Function<A, B> f) { 834 public static <A, B> List<B> transform(final List<? extends A> l, final java.util.function.Function<A, B> f) { 834 835 return new AbstractList<B>() { 835 836
Note:
See TracChangeset
for help on using the changeset viewer.