io.sarl.lang.util
Class BehaviorUnitComparator
All Superinterfaces:
java.io.Serializable, java.util.Comparator<T>
class BehaviorUnitComparator
extends java.lang.Object
implements java.util.Comparator<T>, java.io.Serializable
Comparator of BehaviorUnit.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
int compare(SarlBehaviorUnit,SarlBehaviorUnit)
static int compare(XExpression,XExpression)
Compare two Xtext expressions.
Constructor Details
new
new
Action Details
compare(SarlBehaviorUnit,SarlBehaviorUnit)
def compare(SarlBehaviorUnit,SarlBehaviorUnit) : int
compare(XExpression,XExpression)
def compare(XExpression,XExpression) : int
Compare two Xtext expressions.
Parameters:
e1 - the first expression to compare.
e2 - the second expression to compare.
Returns:
A negative value if e1 is lower than e2 , a positive value if e1 is greater than e2 , otherwise 0 .