From a125eaa227194ff764bc0bdf00af63b2c1437fcf Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 2 Mar 2015 22:32:47 +0100 Subject: [PATCH] Adding missing "containsClass" method to Abilities interface. --- Mage/src/mage/abilities/Abilities.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Mage/src/mage/abilities/Abilities.java b/Mage/src/mage/abilities/Abilities.java index 7768d0c535..0dd9366f18 100644 --- a/Mage/src/mage/abilities/Abilities.java +++ b/Mage/src/mage/abilities/Abilities.java @@ -241,6 +241,14 @@ public interface Abilities extends List, Serializable { */ boolean containsAll(Abilities 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.