title: How to retrieve Enum name using the id?
body: <p>I have the <code>enum</code> as:</p>
  
  <pre><code>public enum EnumStatus {
  
      PASSED(40L, "Has Passed"),
      AVERAGE(60L, "Has Average Marks"),
      GOOD(80L, "Has Good Marks");
  
      private java.lang.String name;
  
      private java.lang.Long id;
  
      EnumStatus(Long id, java.lang.String name) {
          this.name = name;
          this.id = id;
      }
  
      public java.lang.String getName() {
          return name;
      }
  
      public java.lang.Long getId() {
          return id;
      }
  }
  </code></pre>
  
  <p>I have to get the Enum names(<code>PASSED</code>, <code>AVERAGE</code>, <code>GOOD</code>) using the ids only(40,60, 80). How do I do it?</p>