public static final List<ChangeKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Kind</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ChangeKind get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ChangeKind result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the '<em><b>Kind</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ChangeKind getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ChangeKind result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null;
public static final List<SpaceType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Space Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static SpaceType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { SpaceType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the '<em><b>Space Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static SpaceType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { SpaceType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/ChangeKind.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/namespace/SpaceType.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static final List<ChangeKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
1
public static final List<SpaceType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
2
  /**
2
  /**
3
   * Returns the '<em><b>Kind</b></em>' literal with the specified literal value.
3
   * Returns the '<em><b>Space Type</b></em>' literal with the specified literal value.
4
   * <!-- begin-user-doc -->
4
   * <!-- begin-user-doc -->
5
   * <!-- end-user-doc -->
5
   * <!-- end-user-doc -->
6
   * @generated
6
   * @generated
7
   */
7
   */
8
  public static ChangeKind get(String literal)
8
  public static SpaceType get(String literal)
9
  {
9
  {
10
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
10
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
11
    {
11
    {
12
      ChangeKind result = VALUES_ARRAY[i];
12
      SpaceType result = VALUES_ARRAY[i];
13
      if (result.toString().equals(literal))
13
      if (result.toString().equals(literal))
14
      {
14
      {
15
        return result;
15
        return result;
16
      }
16
      }
17
    }
17
    }
18
    return null;
18
    return null;
19
  }
19
  }
20
  /**
20
  /**
21
   * Returns the '<em><b>Kind</b></em>' literal with the specified name.
21
   * Returns the '<em><b>Space Type</b></em>' literal with the specified name.
22
   * <!-- begin-user-doc -->
22
   * <!-- begin-user-doc -->
23
   * <!-- end-user-doc -->
23
   * <!-- end-user-doc -->
24
   * @generated
24
   * @generated
25
   */
25
   */
26
  public static ChangeKind getByName(String name)
26
  public static SpaceType getByName(String name)
27
  {
27
  {
28
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
28
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
29
    {
29
    {
30
      ChangeKind result = VALUES_ARRAY[i];
30
      SpaceType result = VALUES_ARRAY[i];
31
      if (result.getName().equals(name))
31
      if (result.getName().equals(name))
32
      {
32
      {
33
        return result;
33
        return result;
34
      }
34
      }
35
    }
35
    }
36
    return null;
36
    return null;
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