/** * Return a list of all valid VMs in this container. A valid VM is one whose install * location exists on the file system. The order of the list is not specified. * * @return List */ public List<IVMInstall> getValidVMList() { List<IVMInstall> vms = getVMList(); List<IVMInstall> resultList = new ArrayList<IVMInstall>(vms.size()); resultList.addAll(vms); resultList.removeAll(fInvalidVMList); return resultList; }
/** * Return a list of all valid VMs in this container. A valid VM is one whose install * location exists on the file system. The order of the list is not specified. * * @return List */ public List<IVMInstall> getValidVMList() { List<IVMInstall> vms = getVMList(); List<IVMInstall> resultList = new ArrayList<>(vms.size()); resultList.addAll(vms); resultList.removeAll(fInvalidVMList); return resultList; }
List<IVMInstall> deleted = oldResults.getVMList(); List<IVMInstall> current = newResults.getValidVMList(); deleted.removeAll(current);
List<IVMInstall> deleted = oldResults.getVMList(); List<IVMInstall> current = newResults.getValidVMList(); deleted.removeAll(current);