Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 0 | 1.000 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 617 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java |
2 | 11 | 490 | 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(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; } } |
| |||||
/** * 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; } } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |