mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Adding missing "containsClass" method to Abilities interface.
This commit is contained in:
parent
45b4c84b53
commit
a125eaa227
1 changed files with 8 additions and 0 deletions
|
@ -241,6 +241,14 @@ public interface Abilities<T extends Ability> extends List<T>, Serializable {
|
|||
*/
|
||||
boolean containsAll(Abilities<T> abilities);
|
||||
|
||||
/**
|
||||
* Searches this set of abilities for the existence of the give class
|
||||
*
|
||||
* @param classObject
|
||||
* @return True if the passed in class is also in this set of abilities.
|
||||
*/
|
||||
boolean containsClass(Class classObject);
|
||||
|
||||
/**
|
||||
* Copies this set of abilities. This copy should be new instances of all
|
||||
* the contained abilities.
|
||||
|
|
Loading…
Reference in a new issue