commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-296) Add method chaining pattern to StopWatch
Date Wed, 08 Nov 2006 22:48:53 GMT
    [ http://issues.apache.org/jira/browse/LANG-296?page=comments#action_12448305 ] 
            
Henri Yandell commented on LANG-296:
------------------------------------

On binary compatibility - it dictates which version of Lang it would go in (2.2.1, 2.3 and
3.0 being the potentials).

Your reply on the LOC helps me summarize my thoughts on it - the chaining pattern usually
saves N-1 lines, do we want to add it to only save 1 line? 

Or N-2 and 0 lines if the coder doesn't like accessor and mutator on the same line.

> Add method chaining pattern to StopWatch
> ----------------------------------------
>
>                 Key: LANG-296
>                 URL: http://issues.apache.org/jira/browse/LANG-296
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.2
>         Environment: any
>            Reporter: Justin Pitts
>            Priority: Trivial
>         Attachments: MethodChainingPattern
>
>
> Implement the method chaining pattern (similiar to StringBuffer) to mutator methods.
This enables the following code:
> StopWatch s = new StopWatch().start();
> System.out.println(s.stop().getTime());

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message