Hi all, 

In the next days I'll try in a branch or in github to replace some of the 
classes in oac.functor.adapter package by static helper functions, like 
Functions and Predicates (also present in lambda project - Java 8).

So instead of:

UnaryPredicate<String> isEmpty = ...;
UnaryPredicateUnaryFunction<String> isEmptyFunction = 
UnaryPredicateUnaryFunction.adapt(isEmpty);

We could have more or less:

UnaryPredicate<String> p = ...;
UnaryFunction<String, Boolean> f = Predicates.asFunction(p);

Besides being easier to use, It could reduce the number of public classes in 
[functor]-core too.

Feel free to chime in if you have any suggestions about this :)

Thanks in advance!

Bruno P. Kinoshita
http://kinoshita.eti.br
http://tupilabs.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to