title: java enum inside class with label
body: <p>How can I create enum in class with labels?
  If enum is single java file it is simple, i need to create String variable and then consctructor and getter and setter like this:</p>
  
  <pre><code>public enum Status {
      OPENED("opened"), CLOSED("closed");
  
      private Status(String label) {
          this.label = label;
      }
  
      public String label;
  
      public String getLabel() {
          return label;
      }
  }
  </code></pre>
  
  <p>But what if I have enum in class, how can i implement it?</p>
  
  <pre><code>public class Shop {
  
       private enum Status {
          OPENED("opened"),CLOSED("closed");
     } 
  
  }
  </code></pre>