0 Replies Latest reply on Jan 16, 2008 7:21 PM by Ivan Bojer

    An array of enumerated types using annotations

    Ivan Bojer Newbie

      Can anyone shed some light on how can one define an array of enumerated types? I need to map the following class:

      public class Proto {
       public enum TransportMethod {HTTP, HTTPS, TELNET, SSH};
      
      
       private Set<TransportMethod> methods = new HashSet<TransportMethod>(0);
      ...getters and setters....
      }