[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sdx-developers] Big brother is watching you (copyright Malo Pichot)
From: |
Pierrick Brihaye |
Subject: |
Re: [sdx-developers] Big brother is watching you (copyright Malo Pichot) |
Date: |
Wed, 30 Jun 2004 09:09:38 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.6) Gecko/20040113 |
Salut,
Frédéric Glorieux a écrit :
public boolean isGood(différencié selon l'objet)
Mmmh... j'aime pas :-)
ou encore
public boolean check(différencié selon l'objet)
J'aime pas non plus. Pour moi, un boolean doit être retourné par un
isXXX. Un "check" devrait être void (mais lancer une exception en cas de
pb).
public Object get(Object x) {
if (check(x)) return x;
else return null;
}
Dans ce cas, je préfère "getValid"...
A+
--
Pierrick Brihaye, informaticien
Service régional de l'Inventaire
DRAC Bretagne
mailto:address@hidden
+33 (0)2 99 29 67 78