CloneSet414


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
40210.992nested_class_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1401952
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java
24071
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/UniqueEList.java
Next
Last
Clone Instance
1
Line Count
40
Source Line
1952
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java

/**
 * A <code>BasicEList</code> that {@link #useEquals uses} <code>==</code> instead of <code>equals</code> to compare members.
 */
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;
  }
}


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

/**
 * A <code>UniqueEList</code> that {@link #useEquals uses} <code>==</code> instead of <code>equals</code> to compare members.
 */
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 AbstractionParameter Count: 1Parameter Bindings

/**
   * A <code>BasicEList</code> that {@link #useEquals uses} <code>==</code> instead of <code>equals</code> to compare members.
   */
/**
   * A <code>UniqueEList</code> that {@link #useEquals uses} <code>==</code> instead of <code>equals</code> to compare members.
   */
public static class FastCompare<E> extends [[#variable17290d00]]<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.
       */
  /**
       * 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;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#17290d00]]
BasicEList 
12[[#17290d00]]
UniqueEList