title: NameValuePair is deprecated in API 22
body: <p>Now that namevaluepair is deprecated in API 22. What can i do if i want to implement 'namevaluepair' interface. 
  below is my code</p>
  
  <pre><code>package com.example.passpass;
  
  import org.apache.http.NameValuePair;
  
  public class DoubleNameValuePair implements NameValuePair{
  
   String name;
  
      double value;
  
      public DoubleNameValuePair(String name, double value) {
          this.name = name;
          this.value = value;
      }
  
      @Override
      public String getName() {
          return name;
      }
  
      @Override
      public String getValue() {
          return Double.toString(value);
      }
  
  }
  </code></pre>