示例#1
0
 public Collection<Dependency> getIncomingEdges(Resource to) {
   Map<Resource, Dependency> deps = incomingDependenciesByResource.get(to);
   if (deps != null) {
     return deps.values();
   }
   return Collections.emptyList();
 }
示例#2
0
 public Collection<Dependency> getOutgoingEdges(Resource from) {
   Map<Resource, Dependency> deps = outgoingDependenciesByResource.get(from);
   if (deps != null) {
     return deps.values();
   }
   return Collections.emptyList();
 }