title: How to create getters and setters for enum
body: <pre><code>public enum EventTypeName
  {
      MAIN_EVENT(new MainEvent()),
      MAIN_ADJUSTMENT_EVENT(new MainAdjustmentEvent()),
      CUSTOMER_EVENT(new CustomerEvent()),
       EventType eventType;
  
      private EventTypeName(EventType eventType)
      {
          this.eventType = eventType;
      }
  
      public EventType getEventType()
      {
          return eventType;
      }
  }
  </code></pre>
  <p>I need to make getters and getters and setters for all new events to be declared in enum.</p>