title: Should Java enums be defined in their own files?
body: <p>If I've understood enums correctly, a good example would be to use them to store the suite of a playing card instead of four magic numbers or four static final ints.</p>
  
  <pre><code>public class Card {
      // ...
      private enum CARD_SUITE { HEARTS, DIAMONDS, CLUBS, SPADES; }
  }
  </code></pre>
  
  <p>But what if a public method of <code>Card</code> needs a suite as argument, e.g. <code>isSuite(CARD_SUITE suite)</code>? The enumeration is private to the class. Making a new file for that single line feels very unnecessary. How is this solved?</p>