What would be java equivalent code for this C# code?
<p>I am not sure how to implement this C# code into java? Dev is class that has this code.</p>

<pre><code>    public enum ConfigSetupByte0Bitmap
    {
        Config5VReg = 0x80,
        ConfigPMux  = 0x40, 
    }

   public void SetVReg(bool val)
    {
        //vReg = val;
        if (val)
        {
            configSetupByte0 |= (int)Dev.ConfigSetupByte0Bitmap.Config5VReg;
        }
        else
        {
            configSetupByte0 &amp;= ~(int)Dev.ConfigSetupByte0Bitmap.Config5VReg;   
        }
    }
</code></pre>
