Preprocessor variables in JAVA
<p>I'm am developing with GWT and share a codebase with and Android developer. Some functions we want to share take speciffic arguments like "Drawable" under Android and "Image" under GWT.</p>

<p>Is there a possibiltiy like in C++ where you can say:</p>

<pre><code>#ifdef ANDROID
public void DrawImg(Drawable img);
#elif GWT
public void DrawImg(Image img);
#endif
</code></pre>

<p>The solution we ar currently test is dowing it with a Generic like this:</p>

<pre><code>interface DrawImgInterf&lt;T extends Object&gt; {
    public void DrawImg(T img);
}
</code></pre>

<p>However using soemthing liKe a Preprocesor varible seems better. Is there such a thing in Java?</p>
