Package de.fraunhofer.aisec.cpg.helpers
Class NodeComparator
java.lang.Object
de.fraunhofer.aisec.cpg.helpers.NodeComparator
- All Implemented Interfaces:
java.util.Comparator<de.fraunhofer.aisec.cpg.graph.Node>
public class NodeComparator
extends java.lang.Object
implements java.util.Comparator<de.fraunhofer.aisec.cpg.graph.Node>
-
Constructor Summary
Constructors Constructor Description NodeComparator() -
Method Summary
Modifier and Type Method Description intcompare(de.fraunhofer.aisec.cpg.graph.Node n1, de.fraunhofer.aisec.cpg.graph.Node n2)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NodeComparator
public NodeComparator()
-
-
Method Details
-
compare
public int compare(de.fraunhofer.aisec.cpg.graph.Node n1, de.fraunhofer.aisec.cpg.graph.Node n2)- Specified by:
comparein interfacejava.util.Comparator<de.fraunhofer.aisec.cpg.graph.Node>
-