Changeset 9246 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-01-01T22:21:21+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Pair.java
r8846 r9246 69 69 /** 70 70 * Convenient constructor method 71 * @param <U> type of first item 72 * @param <V> type of second item 71 73 * @param u The first item 72 74 * @param v The second item -
trunk/src/org/openstreetmap/josm/tools/Predicates.java
r8928 r9246 18 18 /** 19 19 * Returns the negation of {@code predicate}. 20 * @param <T> type of items 20 21 * @param predicate the predicate to negate 21 22 * @return the negation of {@code predicate} … … 32 33 /** 33 34 * Returns a {@link Predicate} executing {@link Objects#equals}. 35 * @param <T> type of items 34 36 * @param ref the reference object 35 37 * @return a {@link Predicate} executing {@link Objects#equals} … … 117 119 /** 118 120 * Returns a {@link Predicate} executing {@link Collection#contains(Object)}. 121 * @param <T> type of items 119 122 * @param target collection 120 123 * @return a {@link Predicate} executing {@link Collection#contains(Object)} … … 131 134 /** 132 135 * Returns a {@link Predicate} testing whether objects are {@code null}. 136 * @param <T> type of items 133 137 * @return a {@link Predicate} testing whether objects are {@code null} 134 138 */ -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r9231 r9246 95 95 /** 96 96 * Tests whether {@code predicate} applies to at least one element from {@code collection}. 97 * @param <T> type of items 97 98 * @param collection the collection 98 99 * @param predicate the predicate … … 109 110 /** 110 111 * Tests whether {@code predicate} applies to all elements from {@code collection}. 112 * @param <T> type of items 111 113 * @param collection the collection 112 114 * @param predicate the predicate … … 149 151 /** 150 152 * Returns the first element from {@code items} which is non-null, or null if all elements are null. 153 * @param <T> type of items 151 154 * @param items the items to look for 152 155 * @return first non-null item if there is one … … 165 168 * Filter a collection by (sub)class. 166 169 * This is an efficient read-only implementation. 170 * @param <S> Super type of items 171 * @param <T> type of items 167 172 * @param collection the collection 168 173 * @param klass the (sub)class … … 349 354 /** 350 355 * Copies the given array. Unlike {@link Arrays#copyOf}, this method is null-safe. 356 * @param <T> type of items 351 357 * @param array The array to copy 352 358 * @return A copy of the original array, or {@code null} if {@code array} is null … … 657 663 /** 658 664 * Topological sort. 665 * @param <T> type of items 659 666 * 660 667 * @param dependencies contains mappings (key -> value). In the final list of sorted objects, the key will come … … 1225 1232 /** 1226 1233 * Adds the given item at the end of a new copy of given array. 1234 * @param <T> type of items 1227 1235 * @param array The source array 1228 1236 * @param item The item to add
Note:
See TracChangeset
for help on using the changeset viewer.