private static int comparePadding ( List < Element > elements , int index , Boolean number ) { int rel = 0 ; for ( Iterator < Element > it = elements . listIterator ( index ) ; it . hasNext ( ) ; ) { Element element = it . next ( ) ; if ( number != null && number . booleanValue ( ) != element . isNumber ( ) ) { break ; } rel = element . compareTo ( null ) ; if ( rel != 0 ) { break ; } } return rel ; }
Compare the end of the version with 0 .