Can I use bitwise OR for Java Enums
<p>Suppose you have an enum Direction</p>

<pre><code>enum Direction{
    North,South,East West
}
</code></pre>

<p>Could I write a method that uses bitwise or's to compare multiple enums</p>

<pre><code>public boolean canGoDirection(Direction dir){
     return dir | Direction.North;
}
</code></pre>

<p>where I would call the above method as</p>

<pre><code>this.canGoDirection(Direction.South | Direction.North);
</code></pre>
