I use same syntax for custom view. I think it isn't a oop valid notation, and performance improvement is poor (maybe class file size could be smaller)
You can use it if you like it. Bye Il giorno 15/mar/2011 21.38, "brookisme" <[email protected]> ha scritto: > Hi Guys. When creating methods in my custom classes I like to use the > old trick of returning "this" on a lot of methods so that I can chain > methods together like so > > MyCustomClass mcc = new MyCustomClass(); > > mcc.method1().method2().method3(); > > > I was wondering if i were to do this with my "setters" (so my setters > had the return type MyCostumClass instead of void) will that hurt > preformance? > > I guess the problem is I don't have a good understanding for what > happens to unused return values. > > Thanks > Brook > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

