Spec and API review for {Int,Long,Double}SummaryStatistics

Joshua Bloch josh at bloch.us
Fri Mar 29 14:28:41 PDT 2013


Mike,

On Fri, Mar 29, 2013 at 12:44 PM, Mike Duigou <mike.duigou at oracle.com>wrote:

>
> On Mar 29 2013, at 11:01 , Kevin Bourrillion wrote:
>
> Final nit: what's the consistent rule for when exactly this "get" prefix
> is used?
>
>
> It's generally used to retrieve state with little or no computation or
> conversion required to produce the result. "as" or "to" imply conversion.
> Unadorned names usually imply more computation. Across the JDK it's easy to
> find counter examples to every rule unfortunately.
>

Do you have any evidence that this is a rule across the JDK (i.e., that it
holds in a significant majority of all cases)?  I haven't done a methodical
study, but it doesn't match my previous assumptions, which are contained in
*Effective Java*.

     Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130329/8950eea1/attachment.html 


More information about the lambda-libs-spec-experts mailing list