H
harry
I have the following method in a java bean class -
private boolean saveReturnPart(List<WarningMessageVO> messages)
{
boolean ret;
// logic here determines if a Return Part should be saved and sets "ret"
variable
return ret;
}
The method basically returns true if a return part should be saved, false if
not - the problem is (and probably a very stupid question) what should i
name the method?
isSaveReturnPart() - doesn't sound right
saveReturnPart() - sounds like it's doing the actual save
shouldSaveReturnPart() - sounds right but is "should" the word to use?
is there a standard for this? - any suggestions?
thanks in advance
harry
private boolean saveReturnPart(List<WarningMessageVO> messages)
{
boolean ret;
// logic here determines if a Return Part should be saved and sets "ret"
variable
return ret;
}
The method basically returns true if a return part should be saved, false if
not - the problem is (and probably a very stupid question) what should i
name the method?
isSaveReturnPart() - doesn't sound right
saveReturnPart() - sounds like it's doing the actual save
shouldSaveReturnPart() - sounds right but is "should" the word to use?
is there a standard for this? - any suggestions?
thanks in advance
harry