code: 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];
          }
      }
docs: Alter a permutation by setting it to the values in the other permutation.
  
  @param other the other permutation to use
  @throws IllegalArgumentException thrown if the permutations are of different
  size