title: Java enum, different value depending on bool value
body: <p>I want to create an enum class, lets say:</p>
  
  <pre><code>public enum runtimeStatus {
      STATUS1("passed"),
      STATUS2("failed"),
      STATUS3("notrun");
  
      private String status;
  
      private runtimeStatus(String statusCode) {
              status = statusCode;
  
      }
  
      public String getStatus() {
          return status;
      }
  
  }
  </code></pre>
  
  <p>Okay, I'm accesing those properties with <code>runtimeStatus.STATUS1.getStatus();</code> 
  But how can I accomplish to pass a boolean to that call, so I get a different output. Lets say for STATUS1 if passed boolean is TRUE to return "passed" if its FALSE to return "passed-type2"</p>