Mike Duigou mike.duigou at
Wed Feb 27 12:48:28 PST 2013

The source of the naming approach is to handle overloads that differ only in the return type. The EG opted to resolve the problem by naming the versions of these methods for primitive types with the "AsXYZ" naming. This ensures that within the same class there won't be overloads fighting over the return type.


On Feb 26 2013, at 18:55 , Zhong Yu wrote:

>       public interface IntBinaryOperator {
>           public int applyAsInt(int left, int right);
> The method name seems quite verbose; any reason why it's not simply "apply"?
> Same for Long, Double, and Unary.
> Zhong Yu

More information about the lambda-dev mailing list