]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/elaboration/constraints/ConstraintComparator.java
Minor SCL enhancements and fixes for logging and test executing
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / elaboration / constraints / ConstraintComparator.java
1 package org.simantics.scl.compiler.internal.elaboration.constraints;
2
3 import java.util.Comparator;
4
5 import org.simantics.scl.compiler.types.util.TypeComparator;
6
7 enum ConstraintComparator implements Comparator<Constraint> {
8     INSTANCE;
9
10     @Override
11     public int compare(Constraint o1, Constraint o2) {
12         return TypeComparator.INSTANCE.compare(o1.constraint, o2.constraint);
13     }   
14 }