/** * Adds single alternative to the internal alternatives set of the policy object. * * @param set assertion set (policy alternative) object to be added. May be {@code null}; in such case the method * returns false. * * @return {@code true} or {@code false} depending on whether the new alternative was added to the policy object or not. */ private boolean add(final AssertionSet set) { if (set == null) { return false; } if (this.assertionSets.contains(set)) { return false; } else { this.assertionSets.add(set); this.vocabulary.addAll(set.getVocabulary()); return true; } }
final Iterator<QName> vIterator1 = this.getVocabulary().iterator(); final Iterator<QName> vIterator2 = that.getVocabulary().iterator(); while (vIterator1.hasNext()) { final QName entry1 = vIterator1.next();