Suggestion: Add the method isEmpty in the classes StringBuilder and StringBuffer (original) (raw)
Vitaly Davidovich vitalyd at gmail.com
Mon Feb 11 17:08:01 UTC 2013
- Previous message: Suggestion: Add the method isEmpty in the classes StringBuilder and StringBuffer
- Next message: Suggestion: Add the method isEmpty in the classes StringBuilder and StringBuffer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It should be isEmpty() -- empty() is usually for returning empty versions of the class. isEmpty is also consistent with String.
Sent from my phone On Feb 11, 2013 12:03 PM, "Paul Benedict" <pbenedict at apache.org> wrote:
Do you want isEmpty() for bean access, or empty() like Collections? Since there isn't a getLength() but just length() (and size() for collections), I think the latter would be preferred.
Paul
- Previous message: Suggestion: Add the method isEmpty in the classes StringBuilder and StringBuffer
- Next message: Suggestion: Add the method isEmpty in the classes StringBuilder and StringBuffer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]