Github user aledsage commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/106#discussion_r15926989
--- Diff: utils/common/src/main/java/brooklyn/util/guava/Functionals.java
---
@@ -38,4 +43,20 @@
return chain(f1, chain(f2, chain(f3, f4)));
}
+ public static <I> WhenFunctionBuilderWhenFirst<I> when(I test) {
+ return WhenFunctions.when(test);
+ }
+
+ public static <I> WhenFunctionBuilderWhenFirst<I> when(Predicate<I>
test) {
--- End diff --
I don't like that we're exposing the class names like
`WhenFunctionBuilderWhenFirst`. I can see where the name came from, but I can
also imagine we'll want to rename it later. Can we mark these as `@Beta`, and
same for `WhenFunctions`?
---
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.
---