public class FormalParameterComparator extends java.lang.Object implements java.util.Comparator<FormalParameter>
Constructor and Description |
---|
FormalParameterComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(FormalParameter p1,
FormalParameter p2)
Compae formal parameters by their position within the formal parameter
list of the defining method.
|
public FormalParameterComparator()
public int compare(FormalParameter p1, FormalParameter p2) throws java.lang.IllegalArgumentException
compare
in interface java.util.Comparator<FormalParameter>
java.lang.IllegalArgumentException
- if parameters belong to different methods.