Ich habe folgendes:Wie konvertiert man Java 8 map.remove in Java 1.6?
fruitMap.remove(fruitId, fruitProperties);
Die fruitMap ist:
private Map<FruitId, FruitProperties> fruitMap = new HashMap<FruitId, FruitProperties>();
Wenn ich versuche, meinen Code ich eine bekommen zu bauen:
ERROR
The method remove(Object) in the type Map<MyImplementation.FruitId, FruitProperties>
is not applicable for the arguments (Map<MyImplementation.FruitId, FruitProperties>)
Was ist das Problem?
Beachten Sie, dass dieser Aufruf innerhalb einer Methode "removeFruit()" in meiner "FruitImplementation" -Klasse ist.
Wie ist 'fruitId' definiert? – Todd