test_class.file: tool/group/src/test/java/org/openscience/cdk/group/PermutationTest.java
test_class.identifier: PermutationTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void setToTest() {
          int[] values = new int[]{1, 0, 3, 2};
          Permutation a = new Permutation(values);
          Permutation b = new Permutation(values.length);
          a.setTo(b);
          Assert.assertTrue(a.isIdentity());
      }
test_case.class_method_signature: PermutationTest.setToTest()
test_case.full_signature: @Test public void setToTest()
test_case.identifier: setToTest
test_case.invocations: setTo assertTrue isIdentity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void setToTest()
focal_class.declarator: values
focal_class.modifier: private final
focal_class.original_string: private final int[] values;
focal_class.type: int[]
focal_class.var_name: values
focal_class.file: tool/group/src/main/java/org/openscience/cdk/group/Permutation.java
focal_class.identifier: Permutation
focal_class.class_method_signature: Permutation.Permutation(int size)
focal_class.full_signature: public  Permutation(int size)
focal_class.identifier: Permutation
focal_class.modifiers: public
focal_class.parameters: (int size)
focal_class.signature:  Permutation(int size)
focal_class.class_method_signature: Permutation.Permutation(int... values)
focal_class.full_signature: public  Permutation(int... values)
focal_class.identifier: Permutation
focal_class.modifiers: public
focal_class.parameters: (int... values)
focal_class.signature:  Permutation(int... values)
focal_class.class_method_signature: Permutation.Permutation(Permutation other)
focal_class.full_signature: public  Permutation(Permutation other)
focal_class.identifier: Permutation
focal_class.modifiers: public
focal_class.parameters: (Permutation other)
focal_class.signature:  Permutation(Permutation other)
focal_class.class_method_signature: Permutation.equals(Object other)
focal_class.full_signature: @Override public boolean equals(Object other)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object other)
focal_class.return: boolean
focal_class.signature: boolean equals(Object other)
focal_class.class_method_signature: Permutation.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Permutation.isIdentity()
focal_class.full_signature: public boolean isIdentity()
focal_class.identifier: isIdentity
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isIdentity()
focal_class.class_method_signature: Permutation.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: Permutation.get(int index)
focal_class.full_signature: public int get(int index)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (int index)
focal_class.return: int
focal_class.signature: int get(int index)
focal_class.class_method_signature: Permutation.getValues()
focal_class.full_signature: public int[] getValues()
focal_class.identifier: getValues
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] getValues()
focal_class.class_method_signature: Permutation.firstIndexOfDifference(Permutation other)
focal_class.full_signature: public int firstIndexOfDifference(Permutation other)
focal_class.identifier: firstIndexOfDifference
focal_class.modifiers: public
focal_class.parameters: (Permutation other)
focal_class.return: int
focal_class.signature: int firstIndexOfDifference(Permutation other)
focal_class.class_method_signature: Permutation.getOrbit(int element)
focal_class.full_signature: public List<Integer> getOrbit(int element)
focal_class.identifier: getOrbit
focal_class.modifiers: public
focal_class.parameters: (int element)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> getOrbit(int element)
focal_class.class_method_signature: Permutation.set(int index, int value)
focal_class.full_signature: public void set(int index, int value)
focal_class.identifier: set
focal_class.modifiers: public
focal_class.parameters: (int index, int value)
focal_class.return: void
focal_class.signature: void set(int index, int value)
focal_class.class_method_signature: Permutation.setTo(Permutation other)
focal_class.full_signature: public void setTo(Permutation other)
focal_class.identifier: setTo
focal_class.modifiers: public
focal_class.parameters: (Permutation other)
focal_class.return: void
focal_class.signature: void setTo(Permutation other)
focal_class.class_method_signature: Permutation.multiply(Permutation other)
focal_class.full_signature: public Permutation multiply(Permutation other)
focal_class.identifier: multiply
focal_class.modifiers: public
focal_class.parameters: (Permutation other)
focal_class.return: Permutation
focal_class.signature: Permutation multiply(Permutation other)
focal_class.class_method_signature: Permutation.invert()
focal_class.full_signature: public Permutation invert()
focal_class.identifier: invert
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Permutation
focal_class.signature: Permutation invert()
focal_class.class_method_signature: Permutation.toCycleString()
focal_class.full_signature: public String toCycleString()
focal_class.identifier: toCycleString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toCycleString()
focal_class.class_method_signature: Permutation.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public void setTo(Permutation other) {
  
          if (this.values.length != other.values.length)
              throw new IllegalArgumentException("permutations are different size");
  
          for (int i = 0; i < this.values.length; i++) {
              this.values[i] = other.values[i];
          }
      }
focal_method.class_method_signature: Permutation.setTo(Permutation other)
focal_method.full_signature: public void setTo(Permutation other)
focal_method.identifier: setTo
focal_method.modifiers: public
focal_method.parameters: (Permutation other)
focal_method.return: void
focal_method.signature: void setTo(Permutation other)