You either are not asking what you are trying to ask in a way that is understandable, or you are confused.
The 'atWorldEdge' method cannot be used to move objects. All it does is return a true/false value that can be used as a condition within an 'if' statement. The only Actor class methods that can be used to reposition an actor object in the world are 'move(int)' and 'setLocation(int, int)'.
If you are asking, how to use the 'atWorldEdge' method in determining when to do some action (which could include turning and/or moving that actor):
if (atWorldEdge() == true) // or 'if (atWorldEdge())'
{
// some action to take if at world edge
}
We can use the alternate 'if' statement because the method returns a true/false value to begin with, so no comparison needs to be done to get a boolean (true/false) value.