Java, calling static method on elements given from HashMap, how to?
<pre><code>class Depot
{
}

class Depot1 extends Depot
{
    public static void callMe() { }
}

class Depot2 extends Depot
{
    public static void callMe() { }
}

class Depot3 extends Depot
{
    public static void callMe() { }
}

class Depot4 extends Depot
{
    public static void callMe() { }
}

HashMap&lt;Integer, Depot&gt; depots;

depots.put("1", new Depot1());
depots.put("3", new Depot3());
</code></pre>

<p>and now:</p>

<pre><code>depots.get("1").callMe()
</code></pre>

<p>invalid! No <code>callMe()</code> in <code>Depot</code>. How to dodge it?</p>