title: What does |= in Java / Android mean? (bit-wise OR assignment)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2486472/shortcut-or-assignment-operator-in-java">Shortcut &ldquo;or-assignment&rdquo; (|=) operator in Java</a>  </p>
  </blockquote>
  
  
  
  <p>I found the following example code in the Android SDK docs:</p>
  
  <pre><code>    boolean retValue = false;
      retValue |= mActionBarHelper.onCreateOptionsMenu(menu);
      retValue |= super.onCreateOptionsMenu(menu);
  </code></pre>
  
  <p>Can anyone show me equivalent code, to demonstrate what this does?</p>
  
  <p>Note: I assume the method calls return a boolean value, so I like to see an example what this looks like as an if-else construct.</p>