Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.glorb.com!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: Enums: Properties vs. Methods Date: Sat, 2 Apr 2011 21:20:50 +0200 Organization: Netfront http://www.netfront.net/ Lines: 25 Message-ID: References: <2f38bb8e-9a8d-4464-ad3d-b9ce0b557219@e21g2000yqe.googlegroups.com> NNTP-Posting-Host: 217.191.8.236 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1301772099 54207 217.191.8.236 (2 Apr 2011 19:21:39 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Sat, 2 Apr 2011 19:21:39 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2769 In article , noone@lewscanon.com says... > > A(true, true), B(true, false), C(false, true); > > > > You can't tell from looking at the code, whether the first argument > > represents the return value for "isA" or "isB". From this point of view, > > with a proper formatting, I'd prefer the abstract method approach. > > I get your point about the parameter approach, but in an enum where everything > is together and nothing is public that is much less of a confusion. For that > I'd go with the first form for clarity and simplicity. Well, it really depends a lot on personal taste I guess. Kind regards, -Wanja- -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer] --- news://freenews.netfront.net/ - complaints: news@netfront.net ---