/** * Add the objects without verifying uniqueness. */ @SuppressWarnings("unchecked") public boolean addAllUnique(Collection<? extends Map.Entry<K, V>> collection) { return ((InternalEList<Map.Entry<K, V>>)(InternalEList<?>)delegateEList).addAllUnique(collection); }
/** * Add the objects without verifying uniqueness. */ @SuppressWarnings("unchecked") public boolean addAllUnique(Collection<? extends Map.Entry<K, V>> collection) { return ((InternalEList<Map.Entry<K, V>>)(InternalEList<?>)delegateEList).addAllUnique(collection); }
/** * Add the objects without verifying uniqueness. */ @SuppressWarnings("unchecked") public boolean addAllUnique(int index, Collection<? extends Map.Entry<K, V>> collection) { return ((InternalEList<Map.Entry<K, V>>)(InternalEList<?>)delegateEList).addAllUnique(collection); }
/** * Add the objects without verifying uniqueness. */ @SuppressWarnings("unchecked") public boolean addAllUnique(int index, Collection<? extends Map.Entry<K, V>> collection) { return ((InternalEList<Map.Entry<K, V>>)(InternalEList<?>)delegateEList).addAllUnique(collection); }
public static void copyImportedNames(IResourceDescription from, ResourceDescriptionImpl result) { Iterable<QualifiedName> importedNames = from.getImportedNames(); if (importedNames instanceof Collection<?>) { Collection<? extends QualifiedName> sourceImportedNames = (Collection<? extends QualifiedName>) importedNames; if (!sourceImportedNames.isEmpty()) { InternalEList<QualifiedName> targetImportedNames = (InternalEList<QualifiedName>) result.getImportedNames(); targetImportedNames.addAllUnique(sourceImportedNames); } } else { Iterator<QualifiedName> importedNamesIterator = importedNames.iterator(); if (importedNamesIterator.hasNext()) { InternalEList<QualifiedName> targetImportedNames = (InternalEList<QualifiedName>) result.getImportedNames(); do { targetImportedNames.addUnique(importedNamesIterator.next()); } while(importedNamesIterator.hasNext()); } } }
if (!((InternalEList) list).addAllUnique(addUs)) { ILinkingDiagnosticMessageProvider.ILinkingDiagnosticContext context = createDiagnosticContext( obj, eRef, node);
public void loadResource(Resource resource) throws IOException { this.resource = resource; this.resourceSet = resource.getResourceSet(); URI uri = resource.getURI(); if (uri != null && uri.isHierarchical() && !uri.isRelative()) { baseURI = uri; } int size = readCompressedInt(); InternalEObject[] values = allocateInternalEObjectArray(size); for (int i = 0; i < size; ++i) { values[i] = loadEObject(); } internalEObjectList.setData(size, values); @SuppressWarnings("unchecked") InternalEList<InternalEObject> internalEObjects = (InternalEList<InternalEObject>)(InternalEList<?>)resource.getContents(); internalEObjects.addAllUnique(internalEObjectList); recycle(values); }
internalEObjects.addAllUnique(0, internalEObjectList); internalEObjects.addAllUnique(0, internalEObjectList); for (int i = 0; i < existingSize; ++i)
internalEObjects.addAllUnique(0, internalEObjectList); internalEObjects.addAllUnique(0, internalEObjectList); for (int i = 0; i < existingSize; ++i)
public void loadResource(Resource resource) throws IOException { this.resource = resource; this.resourceSet = resource.getResourceSet(); URI uri = resource.getURI(); if (uri != null && uri.isHierarchical() && !uri.isRelative()) { baseURI = uri; } int size = readCompressedInt(); InternalEObject[] values = allocateInternalEObjectArray(size); for (int i = 0; i < size; ++i) { values[i] = loadEObject(); } internalEObjectList.setData(size, values); @SuppressWarnings("unchecked") InternalEList<InternalEObject> internalEObjects = (InternalEList<InternalEObject>)(InternalEList<?>)resource.getContents(); internalEObjects.addAllUnique(internalEObjectList); recycle(values); }
@SuppressWarnings("unchecked") InternalEList<Object> values = (InternalEList<Object>)internalEObject.eGet(eStructuralFeatureData.featureID, false, true); values.addAllUnique(dataValueList); break;
@SuppressWarnings("unchecked") InternalEList<Object> values = (InternalEList<Object>)internalEObject.eGet(eStructuralFeatureData.featureID, false, true); values.addAllUnique(dataValueList); break;