Changeset 10582 in josm for trunk/src/org/openstreetmap/josm/tools/Utils.java
- Timestamp:
- 2016-07-21T02:15:38+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r10570 r10582 58 58 import java.util.regex.Matcher; 59 59 import java.util.regex.Pattern; 60 import java.util.stream.Stream; 60 61 import java.util.zip.GZIPInputStream; 61 62 import java.util.zip.ZipEntry; … … 105 106 /** 106 107 * Tests whether {@code predicate} applies to at least one element from {@code collection}. 108 * <p> 109 * Note: you can use {@link Stream#anyMatch(java.util.function.Predicate)} instead. 107 110 * @param <T> type of items 108 111 * @param collection the collection … … 121 124 /** 122 125 * Tests whether {@code predicate} applies to all elements from {@code collection}. 126 * <p> 127 * Note: you can use {@link Stream#allMatch(java.util.function.Predicate)} instead. 123 128 * @param <T> type of items 124 129 * @param collection the collection … … 175 180 * @param predicate The predicate to filter for. 176 181 * @return The new {@link FilteredCollection} 177 */ 182 * @deprecated Use java predicates and {@link SubclassFilteredCollection#filter(Collection, java.util.function.Predicate)} instead. 183 */ 184 @Deprecated 178 185 @SuppressWarnings("unused") 179 186 public static <T> Collection<T> filter(Collection<? extends T> collection, Predicate<? super T> predicate) { … … 798 805 * @param <A> class of input objects 799 806 * @param <B> class of transformed objects 800 */ 807 * 808 * @deprecated Use java.util.function.Function instead. 809 */ 810 @Deprecated 801 811 public interface Function<A, B> { 802 812
Note:
See TracChangeset
for help on using the changeset viewer.