io.sarl.lang.util
Class FormalParameterListComparator
All Superinterfaces:
java.io.Serializable, java.util.Comparator<T>
class FormalParameterListComparator
extends java.lang.Object
implements java.util.Comparator<T>, java.io.Serializable
Comparator of lists of formal parameters.
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(EList<E>,EList<E>)
static int compare(XtendParameter,XtendParameter)
Compare the two formal parameters.
Constructor Details
new
new
Action Details
compare(EList<E>,EList<E>)
def compare(EList<E>,EList<E>) : int
compare(XtendParameter,XtendParameter)
def compare(XtendParameter,XtendParameter) : int
Compare the two formal parameters.
Parameters:
p1 - the first parameter to compare.
p2 - the second parameter to compare.
Returns:
A negative value if p1 is lower than p2 , a positive value if p1 is greater than p2 , otherwise 0 .