public static int compare ( XtendParameter p1 , XtendParameter p2 ) { if ( p1 != p2 ) { if ( p1 == null ) { return Integer . MIN_VALUE ; } if ( p2 == null ) { return Integer . MAX_VALUE ; } final JvmTypeReference t1 = p1 . getParameterType ( ) ; final JvmTypeReference t2 = p2 . getParameterType ( ) ; if ( t1 != t2 ) { final int cmp ; if ( t1 == null ) { cmp = Integer . MIN_VALUE ; } else if ( t2 == null ) { cmp = Integer . MAX_VALUE ; } else { cmp = t1 . getIdentifier ( ) . compareTo ( t2 . getIdentifier ( ) ) ; } if ( cmp != 0 ) { return cmp ; } } } return 0 ; }
Compare the two formal parameters .