title: Enum with array/list values
body: <pre><code>if (isProductDeliverable) {
    REQUIRED_FIELDS = Arrays.asList(new String[] { Fields.NAME, Fields.EMAIL, Fields.ADDRESS });
  } else {
    REQUIRED_FIELDS = Arrays.asList(new String[] { Fields.NAME, Fields.EMAIL });
  }
  </code></pre>
  
  <p>Instead of this, I want to have a predefined enum with two fields - <code>REQUIRED_FIELDS_FOR_DELIVERABLE_PRODUCTS</code> and <code>REQUIRED_FIELDS_FOR_DOWNLOADABLE_PRODUCTS</code></p>
  
  <p>I know the theory of enums but I've never used them so I cant figure out a way how to do this.</p>
  
  <p>Or maybe a way to ask for the required fields by passing this "isProductDeliverable" boolean and get the correct array of fields?</p>