CloneSet1235


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
111617
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java
211490
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
617
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java

/**
 * Adds the object at the end of the list 
 * and returns whether the object was added; 
 * if {@link #isUnique uniqueness} is required,
 * duplicates will be ignored and <code>false</code> will be returned.
 * This implementation delegates to {@link #addUnique(Object) addUnique(E)} 
 * after uniqueness checking.
 * @param object the object to be added.
 * @return whether the object was added.
 * @see #addUnique(Object)
 */
@Override public boolean add(E object) {
  if (isUnique() && contains(object)) {
    return false;
  }
  else {
    addUnique(object);
    return true;
  }
}


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

/**
 * Adds the object at the end of the list 
 * and returns whether the object was added; 
 * if {@link #isUnique uniqueness} is required,
 * duplicates will be ignored and <code>false</code> will be returned.
 * This implementation delegates to {@link #addUnique(Object) addUnique(Object)} 
 * after uniqueness checking.
 * @param object the object to be added.
 * @return whether the object was added.
 * @see #addUnique(Object)
 */
@Override public boolean add(E object) {
  if (isUnique() && contains(object)) {
    return false;
  }
  else {
    addUnique(object);
    return true;
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
   * Adds the object at the end of the list 
   * and returns whether the object was added; 
   * if {@link #isUnique uniqueness} is required,
   * duplicates will be ignored and <code>false</code> will be returned.
   * This implementation delegates to {@link #addUnique(Object) addUnique(E)} 
   * after uniqueness checking.
   * @param object the object to be added.
   * @return whether the object was added.
   * @see #addUnique(Object)
   */
/**
   * Adds the object at the end of the list 
   * and returns whether the object was added; 
   * if {@link #isUnique uniqueness} is required,
   * duplicates will be ignored and <code>false</code> will be returned.
   * This implementation delegates to {@link #addUnique(Object) addUnique(Object)} 
   * after uniqueness checking.
   * @param object the object to be added.
   * @return whether the object was added.
   * @see #addUnique(Object)
   */
@Override public boolean add(E object) {
  if (isUnique() && contains(object)) {
    return false;
  }
  else {
    addUnique(object);
    return true;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None