/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.collection;
import java.util.Arrays;
public final class MultiKeyInt {
private final int[] keys;
public MultiKeyInt(int[] keys) {
this.keys = keys;
}
public int[] getKeys() {
return keys;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MultiKeyInt that = (MultiKeyInt) o;
if (!Arrays.equals(keys, that.keys)) return false;
return true;
}
public int hashCode() {
return Arrays.hashCode(keys);
}
}