/** * Retrieves the first of the specified objects that matches the criteria * used by the specified matcher. * * @param eObjects * The collection of candidate objects. * @param filter * The matcher to be used. * @return The first object that matches the criteria. */ public static EObject findEObject(Collection<? extends EObject> eObjects, EObjectMatcher filter) { return findEObject(eObjects.iterator(), filter); }
/** * Retrieves the first of the specified objects that matches the criteria * used by the specified matcher. * * @param eObjects * The collection of candidate objects. * @param filter * The matcher to be used. * @return The first object that matches the criteria. */ public static EObject findEObject(Collection<? extends EObject> eObjects, EObjectMatcher filter) { return findEObject(eObjects.iterator(), filter); }