Possible Duplicate:
Shortcut “or-assignment” (|=) operator in Java
I found the following example code in the Android SDK docs:
boolean retValue = false;
retValue |= mActionBarHelper.onCreateOptionsMenu(menu);
retValue |= super.onCreateOptionsMenu(menu);
Can anyone show me equivalent code, to demonstrate what this does?
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.