@Override public boolean containsAll(Collection<?> c) { synchronized (mutex) { return this.list.containsAll(c); } }
/** * Delegates to {@link #delegateEList}. */ public boolean containsAll(Collection<?> collection) { return delegateEList.containsAll(collection); }
@Override public boolean containsAll(Collection<?> c) { return delegate.containsAll(c); }
@Override public boolean containsAll(Collection<?> c) { return getRows().containsAll(c); }
public boolean containsAll(Collection<?> c) { return getDocument().containsAll(c); }
/** * Return the first method permission that contains all the roles in securityRoles and * is the same size */ public MethodPermission getMethodPermission(List securityRolesList) { List permissions = getMethodPermissions(); MethodPermission temp = null; for (int i = 0; i < permissions.size(); i++) { temp = (MethodPermission) permissions.get(i); if (temp.getRoles().containsAll(securityRolesList) && temp.getRoles().size() == securityRolesList.size()) return temp; } return null; } public List getMethodPermissionMethodElements(EnterpriseBean anEJB) {
@Override protected boolean prepare() { // This can execute if there is an owner list and a collection and the owner list contains all the objects of the collection. // boolean result = ownerList != null && collection != null && ownerList.containsAll(collection) && (owner == null || !domain.isReadOnly(owner.eResource())); return result; }
/** * Return true if this MethodPermission and @anotherMethodPermission * have the same roles. */ public boolean isEquivalent(MethodPermission anotherMethodPermission) { if (anotherMethodPermission == null) return false; return getRoles().size() == anotherMethodPermission.getRoles().size() && getRoles().containsAll(anotherMethodPermission.getRoles()); } /**
/** * @param patternModel * @param classifiers * @return True if the given classifiers has a common subtype. The {@link PatternModel} is needed for focusing the * search, all ecore packages referenced from the patternmodel's head, and it's subpackages will be searched * for common subtype elements. */ private boolean hasCommonSubType(PatternModel patternModel, Set<EClassifier> classifiers) { Set<EClass> realSubTypes = new HashSet<EClass>(); Set<EClassifier> probableSubTypes = new HashSet<EClassifier>(); for (PackageImport packageImport : EMFPatternLanguageHelper.getPackageImportsIterable(patternModel)) { probableSubTypes.addAll(getAllEClassifiers(packageImport.getEPackage())); } for (EClassifier classifier : probableSubTypes) { if (classifier instanceof EClass) { EClass eClass = (EClass) classifier; if (eClass.getEAllSuperTypes().containsAll(classifiers)) { realSubTypes.add(eClass); } } } return !realSubTypes.isEmpty(); }
if (eAllStructuralFeatures.containsAll(eIDAttributes))
if ( dc.getMasterOn ().containsAll ( container.getMasterOn () ) )
if ( dc.getMasterOn ().containsAll ( container.getMasterOn () ) )
final Set<EClass> classifiers = IterableExtensions.<EClass>toSet(IterableExtensions.<IInputKey, EClass>map(typeKeys, _function_2)); final Function1<EClass, Boolean> _function_3 = (EClass it) -> { return Boolean.valueOf(it.getEAllSuperTypes().containsAll(classifiers)); }; _xblockexpression_1 = IterableExtensions.<EClass>exists(knownTypes, _function_3);
if (!theNamespaceConstraint.containsAll(newNamespaceConstraint) || !newNamespaceConstraint.containsAll(theNamespaceConstraint))
if (!theNamespaceConstraint.containsAll(newNamespaceConstraint) || !newNamespaceConstraint.containsAll(theNamespaceConstraint))
EList<Lifeline> finishCovereds = finish.getCovereds(); if (!startCovereds.containsAll(finishCovereds) || !finishCovereds.containsAll(startCovereds)) {
.getAllImplementedInterfaces().containsAll(provided1))) {
superSetWildcard.getNamespaceConstraint().containsAll(getNamespaceConstraint()) || XSDNamespaceConstraintCategory.NOT_LITERAL == superSetWildcard.getNamespaceConstraintCategory() && !getNamespaceConstraint().containsAll(superSetWildcard.getNamespaceConstraint())))
superSetWildcard.getNamespaceConstraint().containsAll(getNamespaceConstraint()) || XSDNamespaceConstraintCategory.NOT_LITERAL == superSetWildcard.getNamespaceConstraintCategory() && !getNamespaceConstraint().containsAll(superSetWildcard.getNamespaceConstraint())))
&& ownedTypes.containsAll(relationship .getSources())) {