Changeset 10689 in josm
- Timestamp:
- 2016-07-31T14:11:38+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r10662 r10689 10 10 import java.util.Map; 11 11 import java.util.Set; 12 import java.util.function.Function; 12 13 13 14 import org.openstreetmap.josm.Main; … … 17 18 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 18 19 import org.openstreetmap.josm.tools.Utils; 19 import org.openstreetmap.josm.tools.Utils.Function;20 20 21 21 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r10670 r10689 17 17 import java.util.List; 18 18 import java.util.TreeSet; 19 import java.util.function.Function; 19 20 import java.util.regex.Matcher; 20 21 import java.util.regex.Pattern; … … 40 41 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 41 42 import org.openstreetmap.josm.tools.Utils; 42 import org.openstreetmap.josm.tools.Utils.Function;43 43 44 44 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionManager.java
r10627 r10689 13 13 import java.util.Objects; 14 14 import java.util.Set; 15 import java.util.function.Function; 15 16 16 17 import org.openstreetmap.josm.Main; … … 38 39 import org.openstreetmap.josm.tools.MultiMap; 39 40 import org.openstreetmap.josm.tools.Utils; 40 import org.openstreetmap.josm.tools.Utils.Function;41 41 42 42 /** -
trunk/src/org/openstreetmap/josm/io/MultiFetchOverpassObjectReader.java
r10615 r10689 3 3 4 4 import java.util.Set; 5 import java.util.function.Function; 5 6 6 7 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 17 18 @Override 18 19 protected String buildRequestString(final OsmPrimitiveType type, Set<Long> idPackage) { 19 final Utils.Function<Long, Object> toOverpassExpression = x -> type.getAPIName() + '(' + x + ");>;";20 final Function<Long, Object> toOverpassExpression = x -> type.getAPIName() + '(' + x + ");>;"; 20 21 final String query = '(' + Utils.join("", Utils.transform(idPackage, toOverpassExpression)) + ");out meta;"; 21 22 return "interpreter?data=" + Utils.encodeUrl(query); -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandler.java
r10615 r10689 5 5 6 6 import java.util.Arrays; 7 import java.util.function.Function; 7 8 8 9 import org.openstreetmap.josm.Main; … … 14 15 import org.openstreetmap.josm.io.remotecontrol.PermissionPrefWithDefault; 15 16 import org.openstreetmap.josm.tools.Utils; 16 import org.openstreetmap.josm.tools.Utils.Function;17 17 18 18 /** -
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.