com.dragome.compiler.graph.EdgeCollections Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-bytecode-js-compiler Show documentation
Show all versions of dragome-bytecode-js-compiler Show documentation
Dragome SDK module: bytecode to javascript compiler
package com.dragome.compiler.graph;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Set;
public class EdgeCollections
{
public static Set getSources(Collection edges)
{
Set sources= new LinkedHashSet();
for (Edge edge : edges)
{
sources.add(edge.source);
}
return sources;
}
}