title: How to convert one enum to another enum in java?
body: <p>I have;</p>
  
  <pre><code>public enum Detailed {
      PASSED, INPROCESS, ERROR1, ERROR2, ERROR3;
  }
  </code></pre>
  
  <p>and need to convert it to the following;</p>
  
  <pre><code>public enum Simple {
      DONE, RUNNING, ERROR;
  }
  </code></pre>
  
  <p>So first <code>PASSED</code>-><code>DONE</code> and <code>INPROCESS</code>-><code>RUNNING</code>, but all errors should be: <code>ERROR</code>. Obviously it is possible to write cases for all values, but there may be a better solution?</p>