public static class FastCompare<E> extends BasicEList<E> { private static final long serialVersionUID = 1L; /** * Creates an empty instance with no initial capacity. */ public FastCompare() { super(); } /** * Creates an empty instance with the given capacity. * @param initialCapacity the initial capacity of the list before it must grow. * @exception IllegalArgumentException if the <code>initialCapacity</code> is negative. */ public FastCompare(int initialCapacity) { super(initialCapacity); } /** * Creates an instance that is a copy of the collection. * @param collection the initial contents of the list. */ public FastCompare(Collection<? extends E> collection) { super(collection.size()); addAll(collection); } /** * Returns <code>false</code> because this list uses <code>==</code>. * @return <code>false</code>. */ @Override protected boolean useEquals() { return false;
public static class FastCompare<E> extends UniqueEList<E> { private static final long serialVersionUID = 1L; /** * Creates an empty instance with no initial capacity. */ public FastCompare() { super(); } /** * Creates an empty instance with the given capacity. * @param initialCapacity the initial capacity of the list before it must grow. * @exception IllegalArgumentException if the <code>initialCapacity</code> is negative. */ public FastCompare(int initialCapacity) { super(initialCapacity); } /** * Creates an instance that is a copy of the collection, with duplicates removed. * @param collection the initial contents of the list. */ public FastCompare(Collection<? extends E> collection) { super(collection.size()); addAll(collection); } /** * Returns <code>false</code> because this list uses <code>==</code>. * @return <code>false</code>. */ @Override protected boolean useEquals() { return false;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java File path: /emf-2.4.1/src/org/eclipse/emf/common/util/UniqueEList.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static class FastCompare<E> extends BasicEList<E>
1
public static class FastCompare<E> extends UniqueEList<E>
2
  {
2
  {
3
    private static final long serialVersionUID = 1L;
3
    private static final long serialVersionUID = 1L;
4
    /**
4
    /**
5
     * Creates an empty instance with no initial capacity.
5
     * Creates an empty instance with no initial capacity.
6
     */
6
     */
7
    public FastCompare()
7
    public FastCompare()
8
    {
8
    {
9
      super();
9
      super();
10
    }
10
    }
11
    /**
11
    /**
12
     * Creates an empty instance with the given capacity.
12
     * Creates an empty instance with the given capacity.
13
     * @param initialCapacity the initial capacity of the list before it must grow.
13
     * @param initialCapacity the initial capacity of the list before it must grow.
14
     * @exception IllegalArgumentException if the <code>initialCapacity</code> is negative.
14
     * @exception IllegalArgumentException if the <code>initialCapacity</code> is negative.
15
     */
15
     */
16
    public FastCompare(int initialCapacity)
16
    public FastCompare(int initialCapacity)
17
    {
17
    {
18
      super(initialCapacity);
18
      super(initialCapacity);
19
    }
19
    }
20
    /**
20
    /**
21
     * Creates an instance that is a copy of the collection.
21
     * Creates an instance that is a copy of the collection, with duplicates removed.
22
     * @param collection the initial contents of the list.
22
     * @param collection the initial contents of the list.
23
     */
23
     */
24
    public FastCompare(Collection<? extends E> collection)
24
    public FastCompare(Collection<? extends E> collection)
25
    {
25
    {
26
      super(collection.size());
26
      super(collection.size());
27
      addAll(collection);
27
      addAll(collection);
28
    }
28
    }
29
    /**
29
    /**
30
     * Returns <code>false</code> because this list uses <code>==</code>.
30
     * Returns <code>false</code> because this list uses <code>==</code>.
31
     * @return <code>false</code>.
31
     * @return <code>false</code>.
32
     */
32
     */
33
    @Override
33
    @Override
34
    protected boolean useEquals()
34
    protected boolean useEquals()
35
    {
35
    {
36
      return false;
36
      return false;
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0