Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: Enums: Properties vs. Methods Date: Wed, 30 Mar 2011 18:40:15 +0200 Organization: A noiseless patient Spider Lines: 20 Message-ID: References: <2f38bb8e-9a8d-4464-ad3d-b9ce0b557219@e21g2000yqe.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 30 Mar 2011 16:40:12 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="Pd3ntpyKfq0EKoQN5hnlyw"; logging-data="14516"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+G2t63QzpIijf2B1oukA5p" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Cancel-Lock: sha1:kogQz+lq0ypnNTtJHQuekBJcNUw= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2598 On 30/03/2011 01:05, Lew allegedly wrote: > Daniele Futtorovic wrote: >> For all purposes, yeah. I would however expect the one with the >> constant to be >> marginally easier, as it requires no analysis of the field. > > Which of the two are you calling "the one with the constant"? The same as you when you said: "One returns a constant, the other a constant variable" That is to say, the solution in which the OP overrode the methods in the enum instances. Apologies for not making myself sufficiently clear. -- DF. An escaped convict once said to me: "Alcatraz is the place to be"