
import java.util.*;

public final class Key {

  private Integer[] numbers;

  public Key(Integer[] numbers) {
    this.numbers = (Integer[]) numbers.clone();
  }

  public String toString() {
    return "<Key: " + Arrays.toString(numbers) + ">";
  }

  public int hashCode() {
    return Arrays.hashCode(numbers);
  }

  public boolean equals(Object o) {
    if (this == o) return true;
    if (o.getClass() != Key.class) return false;
    Key other = (Key) o;
    return Arrays.equals(numbers, other.numbers);
  }
}
