How can i have a java interface return an object of a non primitive type? : <p>Can java interface methods can only return primitive types (int,string,etc?)</p>

<p>I want to have a method return a type "BitMap". But my IDE is complaining with Cannot resolve symbol "BitMap":</p>

<pre><code>public interface MyContract {
    public BitMap getBitMap();
    ....
</code></pre>

<p>I suspect I'm misunderstanding something inherent to interfaces that is preventing me from doing this?</p>
