what do you mean by "return the maximum iterations"? I suppose you mean the number of iterations? (could you please rewrite the comment accordingly?)
also, the name of the method should probably be something like ```getNIterations()``` or ```getNumberOfIterations()```.