use of org.eclipse.emf.common.util.UniqueEList in project InformationSystem by ObeoNetwork.
the class EntityFilterImpl method getReferenceReferences.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public EList<Reference> getReferenceReferences() {
BasicEList<Reference> result = new UniqueEList<Reference>() {
private static final long serialVersionUID = 5391913769894408421L;
protected Object[] newData(int capacity) {
return new Reference[capacity];
}
protected boolean useEquals() {
return false;
}
};
for (Property property : getOwnedPropertyReferences()) {
if (property instanceof Reference) {
result.add((Reference) property);
}
}
result.shrink();
EList<Reference> unmodifiableResult = new EcoreEList.UnmodifiableEList.FastCompare<Reference>(this, ExtensionUtilitiesPackage.eINSTANCE.getEntityFilter_ReferenceReferences(), result.size(), result.data());
return unmodifiableResult;
}
use of org.eclipse.emf.common.util.UniqueEList in project InformationSystem by ObeoNetwork.
the class EntityFilterImpl method getAttributeReferences.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public EList<Attribute> getAttributeReferences() {
BasicEList<Attribute> result = new UniqueEList<Attribute>() {
private static final long serialVersionUID = 971586213550724954L;
protected Object[] newData(int capacity) {
return new Attribute[capacity];
}
protected boolean useEquals() {
return false;
}
};
for (Property property : getOwnedPropertyReferences()) {
if (property instanceof Attribute) {
result.add((Attribute) property);
}
}
result.shrink();
EList<Attribute> unmodifiableResult = new EcoreEList.UnmodifiableEList.FastCompare<Attribute>(this, ExtensionUtilitiesPackage.Literals.ENTITY_FILTER__ATTRIBUTE_REFERENCES, result.size(), result.data());
return unmodifiableResult;
}
Aggregations