This discussion is archived
3 Replies Latest reply: Nov 14, 2008 8:55 AM by 843785 RSS

Good verb needed for long method name

843785 Newbie
Currently Being Moderated
Hi all,

I'm looking for a good method name for a method that would otherwise be called
public void verifyParametersAreValidAndChangeThemIfNecessary(MyObject obj)
I want to have a verb that specifies that the parameters will be checked, that if they are ok they won't be touched, and if they are bad they will be changed. So checkParameters() or changeParameters() don't seem to cut it.

Specifically: I have agents running around an environment that should wrap. When an agent tries to move or is first initialized, the environment will look at its new location and move it to a wrapped location if necessary. But again, checkLocation() or moveAgent() don't seem to describe the method correctly...

Sorry if this is a weird question!