public class ModuleOfClassPredicate<T> extends Object implements ModuleDescriptorPredicate<T>
ModuleDescriptorPredicate that matches modules that are is an instance of the given Class.| Constructor and Description |
|---|
ModuleOfClassPredicate(Class<T> moduleClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(ModuleDescriptor<? extends T> moduleDescriptor)
Will match a plugin module according to implementation rules.
|
public ModuleOfClassPredicate(Class<T> moduleClass)
IllegalArgumentException - if the moduleClass is nullpublic boolean matches(ModuleDescriptor<? extends T> moduleDescriptor)
ModuleDescriptorPredicateWill match a plugin module according to implementation rules.
This method must not change the state of the module nor its plugin .
matches in interface ModuleDescriptorPredicate<T>moduleDescriptor - the ModuleDescriptor to test against.true if the module matches the predicate, false otherwise.Copyright © 2014 Atlassian. All rights reserved.