CloneSet170


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
51201.000class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
151984
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/DelegatingNotifyingListImpl.java
251999
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotifyingListImpl.java
Next
Last
Clone Instance
1
Line Count
51
Source Line
984
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/DelegatingNotifyingListImpl.java

/**
 * Returns the resolved object from this list for the purpose of testing whether {@link #removeAll(Collection)} applies to it.
 * @param object the object to be resolved.
 * @return the resolved object from this list for the purpose of testing whether removeAll applies to it.
 */
protected E resolve(E object) {
  return object;
}

/**
 * Removes each object of the collection from the list and returns whether any object was actually contained by the list;
 * it does no inverse updating, or notification.
 * @param collection the collection of objects to be removed.
 * @return whether any object was actually contained by the list.
 */
protected boolean doRemoveAll(Collection<? > collection) {
  return super.removeAll(collection);
}

/**
 * Removes the object from the list and returns the potentially updated notification chain;
 * it does no {@link #inverseRemove inverse} updating.
 * This implementation generates notifications as {@link #isNotificationRequired required}.
 * @param object the object to be removed.
 * @return the notification chain.
 * @see #isNotificationRequired
 * @see #hasInverse
 * @see #inverseRemove
 */
public NotificationChain basicRemove(Object object, NotificationChain notifications) {
  int index = indexOf(object);
  if (index != -1) {
    if (isNotificationRequired()) {
      boolean oldIsSet = isSet();
      Object oldObject = doRemove(index);
      NotificationImpl notification = createNotification(Notification.REMOVE, oldObject, null, index, oldIsSet);
      if (notifications == null) {
        notifications = notification;
      }
      else {
        notifications.add(notification);
      }
    }
    else {
      doRemove(index);
    }
  }
  return notifications;
}


First
Previous
Clone Instance
2
Line Count
51
Source Line
999
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotifyingListImpl.java

/**
 * Returns the resolved object from this list for the purpose of testing whether {@link #removeAll(Collection)} applies to it.
 * @param object the object to be resolved.
 * @return the resolved object from this list for the purpose of testing whether removeAll applies to it.
 */
protected E resolve(E object) {
  return object;
}

/**
 * Removes each object of the collection from the list and returns whether any object was actually contained by the list;
 * it does no inverse updating, or notification.
 * @param collection the collection of objects to be removed.
 * @return whether any object was actually contained by the list.
 */
protected boolean doRemoveAll(Collection<? > collection) {
  return super.removeAll(collection);
}

/**
 * Removes the object from the list and returns the potentially updated notification chain;
 * it does no {@link #inverseRemove inverse} updating.
 * This implementation generates notifications as {@link #isNotificationRequired required}.
 * @param object the object to be removed.
 * @return the notification chain.
 * @see #isNotificationRequired
 * @see #hasInverse
 * @see #inverseRemove
 */
public NotificationChain basicRemove(Object object, NotificationChain notifications) {
  int index = indexOf(object);
  if (index != -1) {
    if (isNotificationRequired()) {
      boolean oldIsSet = isSet();
      Object oldObject = doRemove(index);
      NotificationImpl notification = createNotification(Notification.REMOVE, oldObject, null, index, oldIsSet);
      if (notifications == null) {
        notifications = notification;
      }
      else {
        notifications.add(notification);
      }
    }
    else {
      doRemove(index);
    }
  }
  return notifications;
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
   * Returns the resolved object from this list for the purpose of testing whether {@link #removeAll(Collection)} applies to it.
   * @param object the object to be resolved.
   * @return the resolved object from this list for the purpose of testing whether removeAll applies to it.
   */
protected E resolve(E object) {
  return object;
}

/**
   * Removes each object of the collection from the list and returns whether any object was actually contained by the list;
   * it does no inverse updating, or notification.
   * @param collection the collection of objects to be removed.
   * @return whether any object was actually contained by the list.
   */
protected boolean doRemoveAll(Collection<? > collection) {
  return super.removeAll(collection);
}

/**
   * Removes the object from the list and returns the potentially updated notification chain;
   * it does no {@link #inverseRemove inverse} updating.
   * This implementation generates notifications as {@link #isNotificationRequired required}.
   * @param object the object to be removed.
   * @return the notification chain.
   * @see #isNotificationRequired
   * @see #hasInverse
   * @see #inverseRemove
   */
public NotificationChain basicRemove(Object object, NotificationChain notifications) {
  int index = indexOf(object);
  if (index != -1) {
    if (isNotificationRequired()) {
      boolean oldIsSet = isSet();
      Object oldObject = doRemove(index);
      NotificationImpl notification = createNotification(Notification.REMOVE, oldObject, null, index, oldIsSet);
      if (notifications == null) {
        notifications = notification;
      }
      else {
        notifications.add(notification);
      }
    }
    else {
      doRemove(index);
    }
  }
  return notifications;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None