/** * Returns whether one of the given categories is contained * in this set of group categories * * @param categories the categories to test containment for * * @return <code>true</code> if one of the given categories is * contained in this set; otherwise <code>false</code> */ public boolean containsOneCategory(List<GroupCategory> categories) { for (Iterator<GroupCategory> iter= categories.iterator(); iter.hasNext();) { GroupCategory category= iter.next(); if(contains(category)) return true; } return false; }
/** * Returns whether one of the given categories is contained * in this set of group categories * * @param categories the categories to test containment for * * @return <code>true</code> if one of the given categories is * contained in this set; otherwise <code>false</code> */ public boolean containsOneCategory(List/*<GroupCategory>*/ categories) { for (Iterator iter= categories.iterator(); iter.hasNext();) { GroupCategory category= (GroupCategory)iter.next(); if(contains(category)) return true; } return false; }
/** * Returns whether one of the given categories is contained * in this set of group categories * * @param categories the categories to test containment for * * @return <code>true</code> if one of the given categories is * contained in this set; otherwise <code>false</code> */ public boolean containsOneCategory(List<GroupCategory> categories) { for (Iterator<GroupCategory> iter= categories.iterator(); iter.hasNext();) { GroupCategory category= iter.next(); if(contains(category)) return true; } return false; }