title: Bound Parameter Type to only accept Context Object not Activity Object
body: <pre><code>public static &lt;T extends Context&gt; APIInterface getServiceInstance(T context) {
  
      if (apiInterface == null) {
  
        // do Something
      }
  
      return apiInterface;
  }
  </code></pre>
  
  <p><strong>This method is currently accepting all the objects</strong> .. Activity.this .. getApplicationContext(), getContext() and getBaseContext()</p>
  
  <p><strong><em>Can we restrict this method to only accept Context object as a parameter / not Activity.</em></strong></p>
  
  <p>Thanks</p>