Changeset 3869 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2011-02-08T11:54:02+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r3865 r3869 39 39 } 40 40 return null; 41 } 42 43 public static <T> int indexOf(Iterable<? extends T> collection, Predicate<? super T> predicate) { 44 int i = 0; 45 for (T item : collection) { 46 if (predicate.evaluate(item)) 47 return i; 48 i++; 49 } 50 return -1; 41 51 } 42 52
Note:
See TracChangeset
for help on using the changeset viewer.