Adding missing "containsClass" method to Abilities interface.

This commit is contained in:
LevelX2 2015-03-02 22:32:47 +01:00
parent 45b4c84b53
commit a125eaa227

View file

@ -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.