Re: iterator.



On Thu, 29 Dec 2005 19:18:20 GMT, "VisionSet" <spam@xxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

>// add method
>public boolean add(Volunteer volunteer)

add methods add something. Your method does no such thing, you should
not mislead with such a name. Since it returns boolean, you might
call it

contains
canAdd
isAddable
isUndefined

flipping the sense of the boolean as necessary.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: Array info
    ... public class Amd extends Cpu ... public boolean socket754; ... public Amd(String name, boolean intel, boolean amd, boolean ...
    (comp.lang.java.help)
  • Re: iterator.
    ... >>>public boolean add(Volunteer volunteer) ... >> not mislead with such a name. ... but it sure is annoying Roedy :-) ...
    (comp.lang.java.help)
  • Re: Array reference in for loop
    ... public boolean validate() ... return allOk; ... wrong with my array. ...
    (comp.lang.java.programmer)
  • Re: Array reference in for loop
    ... public boolean validate() ... return allOk; ... wrong with my array. ...
    (comp.lang.java.programmer)
  • Another generics foul-up
    ... public boolean equals ... So "o instanceof Bar" really means ... The Eclipse compiler calls this the "raw form". ...
    (comp.lang.java.programmer)