init a Map <Foo,Vector<Bar>> - Java 7
<p>I need to initialize a like <code>Map x&lt;Apartment,Vector&lt;Expense&gt;&gt;</code> it allows me if I <code>@override</code> the Map methods</p>

<pre><code>Description Resource    Path    Location    Type
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.isEmpty()   Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.size()  Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.keySet()    Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.remove(Object)  Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.entrySet()  Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.putAll(Map&lt;? extends Apartment,? extends Vector&lt;Expense&gt;&gt;)  Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.values()    Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.clear() Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.get(Object) Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.containsKey(Object) Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.containsValue(Object)   Repository.java /proj_individual/src/repo   line 12 Java Problem
The type new Map&lt;Apartment,Vector&lt;Expense&gt;&gt;(){} must implement the inherited abstract method Map&lt;Apartment,Vector&lt;Expense&gt;&gt;.put(Apartment, Vector&lt;Expense&gt;) Repository.java /proj_individual/src/repo   line 12 Java Problem
</code></pre>

<p>But I read on the internet that Map isn't a interface, it is a class, am I doing it wrong, or this is the way it has to be done?</p>
