Changeset 10691 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2016-07-31T17:58:31+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r10689 r10691 1135 1135 public Float aggregateList(List<?> lst) { 1136 1136 final List<Float> floats = Utils.transform(lst, (Function<Object, Float>) x -> Cascade.convertTo(x, float.class)); 1137 final Collection<Float> nonNullList = SubclassFilteredCollection.filter(floats, Predicates. not(Predicates.isNull()));1137 final Collection<Float> nonNullList = SubclassFilteredCollection.filter(floats, Predicates.<Float>isNull().negate()); 1138 1138 return nonNullList.isEmpty() ? (Float) Float.NaN : computeMax ? Collections.max(nonNullList) : Collections.min(nonNullList); 1139 1139 }
Note:
See TracChangeset
for help on using the changeset viewer.