View Javadoc
1   package com.atlassian.plugin.predicate;
2   
3   import com.atlassian.plugin.Plugin;
4   
5   /**
6    * Interface used to match plugins according to implementation specific rules.
7    *
8    * @since 0.17
9    */
10  public interface PluginPredicate {
11      /**
12       * <p>Will match a plugin according to implementation rules.<p>
13       * <p>This method must not change the state of the plugin.</p>
14       *
15       * @param plugin the plugin to test against.
16       * @return <code>true</code> if the plugin matches the predicate, <code>false</code> otherwise.
17       */
18      boolean matches(final Plugin plugin);
19  }