public boolean isEquivalent ( final Plugin testPlugin ) { return ( repository == testPlugin . getLoggerRepository ( ) ) && ( ( this . name == null && testPlugin . getName ( ) == null ) || ( this . name != null && name . equals ( testPlugin . getName ( ) ) ) ) && this . getClass ( ) . equals ( testPlugin . getClass ( ) ) ; }
Returns true if the plugin has the same name and logger repository as the testPlugin passed in .