RealmList of String Type in Android : <p>I'm using Realm for Local storage in Android. I'm getting following response form server.</p>

<pre><code>[{
    "ListId": 10,
    "Names": ["Name1", "Name2", "Name3", "Name4"]
}]
</code></pre>

<p>Here is my Model</p>

<pre><code>   public class Model extends RealmObject {

    private int ListId;
    private RealmList&lt;String&gt; Names = new RealmList&lt;String&gt;()

    public int getListId() {
        return ListId;
    }

    public void setListId(int listId) {
        ListId = listId;
    }

    public RealmList&lt;String&gt; getNames() {
        return Names;
    }

    public void setNames(RealmList&lt;String&gt; names) {
        Names = names;
    }

}
</code></pre>

<p>And I'm getting this for ArrayList</p>

<p>Type parameter 'java.lang.String' is not within its bound; should extend 'io.realm.RealmObject'.</p>

<p>Thanks.</p>
