@ Override public int compareTo ( InstanceProvider instanceProvider ) { if ( this . getPriority ( ) . equals ( instanceProvider . getPriority ( ) ) ) { return this . getName ( ) . compareTo ( instanceProvider . getName ( ) ) ; } else { return this . getPriority ( ) . compareTo ( instanceProvider . getPriority ( ) ) ; } }
Default implementation of compareTo for the InstanceManager .