Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Map<Integer,Integer> conservativeGarbageCollector(Collection<Integer> symTableValues, Map<Integer,Integer> heap){
- Map<Integer,Integer> aux= heap.entrySet().stream()
- .filter(e->symTableValues.contains(e.getKey()))
- .collect(Collectors.toMap(Map.Entry::getKey,Map.Entry::getValue));
- System.out.println(aux);
- return aux;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement