title: Java - shift int enums
body: <p>In C, I sometimes used structures such as </p>
  
  <pre><code>enum {
     UIViewAutoresizingNone                 = 0,
     UIViewAutoresizingFlexibleLeftMargin   = 1 &lt;&lt; 0,
     UIViewAutoresizingFlexibleWidth        = 1 &lt;&lt; 1,
     UIViewAutoresizingFlexibleRightMargin  = 1 &lt;&lt; 2,
     UIViewAutoresizingFlexibleTopMargin    = 1 &lt;&lt; 3,
     UIViewAutoresizingFlexibleHeight       = 1 &lt;&lt; 4,
     UIViewAutoresizingFlexibleBottomMargin = 1 &lt;&lt; 5
  };
  typedef NSUInteger UIViewAutoresizing;
  </code></pre>
  
  <p>Is there any Java equivalent?</p>