How to load a HashMap with all items from a Group<>
Posted on 2014-11-03
C#.net guy, trying to write .java code; fumbling around on something that seems should be simple.
I have need to load a HashMap with a data that I am receiving from a class that is coming to be as a Group<>
Object model looks something like this;
VmGroupResource vmGroupResource = provider.getVmGroupResource(root.getVms());
Group<Vm> vms = vmGroupResource.getAllVms();
From there I need to put the data in the return data as a HashMap, but I get a type mismatch when I try to do;
(vccdata is the HashMap)
The IDE doesn't show me an error, but it throws an exception when debugging using NetBeans.