Convert single char in String to lower case

后端 未结 7 1756
孤独总比滥情好
孤独总比滥情好 2021-01-17 10:15

I like to \'guess\' attribute names from getter methods. So \'getSomeAttribute\' shall be converted to \'someAttribute\'.

Usually I do something like



        
7条回答
  •  借酒劲吻你
    2021-01-17 10:57

    Its worth remembering that;

    • not all getXXX methods are getters e.g. double getSqrt(double x), void getup().
    • methods which return boolean, start with is and don't take an argument can be a getter, e.g. boolean isActive().

提交回复
热议问题