public int compareTo ( Object o ) { if ( o instanceof ServletHolder ) { ServletHolder sh = ( ServletHolder ) o ; if ( sh == this ) return 0 ; if ( sh . _initOrder < _initOrder ) return 1 ; if ( sh . _initOrder > _initOrder ) return - 1 ; int c = _className . compareTo ( sh . _className ) ; if ( c == 0 ) c = _name . compareTo ( sh . _name ) ; if ( c == 0 ) c = this . hashCode ( ) > o . hashCode ( ) ? 1 : - 1 ; return c ; } return 1 ; }
Comparitor by init order .