Is performance gained when using continue in a for-loop with many if-statements?
<p>I have a for loop in a java program which iterates through a set of maps.</p>

<p>Inside the loop I have around 10 different if-statements which checks the name of each key inside the each map.</p>

<p>Example:</p>

<pre><code>for (&lt;String, Object&gt; map : object.entrySet()) {
  if (map.getKey().equals.("something") {
    do_something;
    continue;   
  }
  if (map.getKey().equals.("something_else") {
    do_something_else;
    continue;
  }
  if ...
}
</code></pre>

<p>Do I gain any performance when adding continue-statements like this? </p>

<p>When I step through my code in my IDE and NOT have these continue statements, each if-statement will be tested even if the first one matches.</p>

<p>If I have them like this and the first if matches, the for loop will skip the next 9 if-statements and continue with the next object. 
Maybe the compiled code will treat it differently and the added continue-statements actually makes the loop slower?</p>