title: how to get enum id using its enum name
body: <pre><code>public enum EnumCountry implements EnumClass&lt;Integer&gt; {
  
    Ethiopia(1),
    Tanzania(2),
    private Integer id;
  
    EnumCountry(Integer value) {
      this.id = value;
    }
  
    public Integer getId() {
      return id;
    }
  
    @Nullable
    public static EnumCountry fromId(Integer id) {
      for (EnumCountry at : EnumCountry.values()) {
        if (at.getId().equals(id)) {
          return at;
        }
      }
      return null;
    }
  }
  </code></pre>
  
  <p>I have the code like above.
  How can I get Enum Id using its Enum Name.</p>