title: How to return enum value by 2 parameters in java
body: <p>I have such enum class in java</p>
  
  <pre><code>    public enum MockTypes
      {
          // Atlantis mocks
          ATLANTIS_VERIFY("ATLANTIS", "verify"),
          ATLANTIS_CREATE_RECORD("ATLANTIS", "createRecord"),
  
      ...
  
          private String m_adaptor;
  
          private String m_step;
  
  private MockTypes( String adaptor, String step)
      {
          m_adaptor = adaptor;
          m_step = step;
      }
  
               public String getAdaptor()
          {
              return m_adaptor;
          }
  
          public String getStep()
          {
              return m_step;
          }
  </code></pre>
  
  <p>I have to implement method that returns enum value by adaptor and step parameter.</p>
  
  <pre><code>public MockTypes getMockTypeByName(String adaptor, String step)
  </code></pre>
  
  <p>but I have no idea how. Could someone help me?</p>