1 4 package com.tc.objectserver.api; 5 6 import com.tc.objectserver.context.ObjectManagerResultsContext; 7 8 import java.util.Collections ; 9 import java.util.Map ; 10 import java.util.Set ; 11 12 15 public class TestObjectManagerResultsContext implements ObjectManagerResultsContext { 16 17 private final Map results; 18 private final Set objectIDs; 19 20 public TestObjectManagerResultsContext(Map results, Set objectIDs) { 21 this.results = results; 22 this.objectIDs = objectIDs; 23 } 24 25 public Map getResults() { 26 return results; 27 } 28 29 public void setResults(ObjectManagerLookupResults results) { 30 this.results.putAll(results.getObjects()); 31 } 32 33 public Set getLookupIDs() { 34 return objectIDs; 35 } 36 37 public Set getNewObjectIDs() { 38 return Collections.EMPTY_SET; 39 } 40 41 42 } | Popular Tags |