title: How to read data from a generic list List<T> in java
body: <p>I have a generic list as shown below.</p>
  
  <pre><code>protected List&lt;T&gt; mItems;
  
   public ArrayAdapter(final List&lt;T&gt; objects, final boolean copyList) {
          if (objects != null) {
              if (copyList) {
                  mItems = new ArrayList&lt;T&gt;(objects);
              } else {
                  mItems = objects;
              }
          } else {
              mItems = new ArrayList&lt;T&gt;();
          }
   }
  </code></pre>
  
  <p>I want get an integer value at a specific location from <code>mItems</code>. Where <code>mItems</code> contains a objects of a model class.</p>
  
  <p><strong>--EDIT--</strong></p>
  
  <p>I don't have access to model class, that's why it is <code>List&lt;T&gt;</code> otherwise I could use <code>List&lt;MyModelClass&gt;</code></p>