CloneSet339


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1112025
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java
2111727
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/DelegatingEList.java
Next
Last
Clone Instance
1
Line Count
11
Source Line
2025
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java

/**
 * Returns the collection of objects in the given collection that are not also contained by this list.
 * @param collection the other collection.
 * @return the collection of objects in the given collection that are not also contained by this list.
 */
protected Collection<E> getNonDuplicates(Collection<? extends E> collection) {
  Collection<E> result = useEquals() ? new UniqueEList<E>(collection.size()): new UniqueEList.FastCompare<E>(collection.size());
  for (E object: collection) {
    if ( !contains(object)) {
      result.add(object);
    }
  }
  return result;
}


First
Previous
Clone Instance
2
Line Count
11
Source Line
1727
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/DelegatingEList.java

/**
 * Returns the collection of objects in the given collection that are not also contained by this list.
 * @param collection the other collection.
 * @return the collection of objects in the given collection that are not also contained by this list.
 */
protected Collection<E> getNonDuplicates(Collection<? extends E> collection) {
  Collection<E> result = useEquals() ? new UniqueEList<E>(collection.size()): new UniqueEList.FastCompare<E>(collection.size());
  for (E object: collection) {
    if ( !contains(object)) {
      result.add(object);
    }
  }
  return result;
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
   * Returns the collection of objects in the given collection that are not also contained by this list.
   * @param collection the other collection.
   * @return the collection of objects in the given collection that are not also contained by this list.
   */
protected Collection<E> getNonDuplicates(Collection<? extends E> collection) {
  Collection<E> result = useEquals() ? new UniqueEList<E>(collection.size()): new UniqueEList.FastCompare<E>(collection.size());
  for (E object: collection) {
    if ( !contains(object)) {
      result.add(object);
    }
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None