title: Get ArrayList<NameValuePair> value by name
body: <p>Is it a correct way to get <code>ArrayList&lt;NameValuePair&gt;</code> value by name ?</p>
  
  <pre><code>private String getValueByKey(ArrayList&lt;NameValuePair&gt; _list, String key) {
      for(NameValuePair nvPair : _list) {
          if(nvPair.getName().equals(key)) {
              return nvPair.getValue().toString();
          }
      }
      return null;
  }
  </code></pre>
  
  <p>Or, is there a shortcut to access <code>ArrayList&lt;NameValuePair&gt;</code> value by name ?</p>