Github user sjcorbett commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/1037#discussion_r45765140
--- Diff:
core/src/main/java/org/apache/brooklyn/enricher/stock/Enrichers.java ---
@@ -891,6 +892,39 @@ protected static int count(Iterable<? extends Object>
vals, boolean includeNullV
return result;
}
+ @Beta
+ public static class ComputingIsQuorate<T extends Object> implements
Function<Collection<T>, T> {
--- End diff --
I can't escape the generics either. However, I can cast
`ComputingIsQuorate` to `(Function<? super Collection<?>, ?>)` in Aggregator!
Personally I prefer keeping ComputingIsQuorate simple and the ugliness in
`lookupTransformation`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---