class CombinationUtil {

    public static boolean sameForAllGivenParameters(int[] first, int[] second, IntSet parameters) {
        checkNotNullAndSameLength(first, second);
        Preconditions.notNull(parameters);
        
        for (int parameter : parameters) {
            if (parameter >= 0 && parameter < first.length && (first[parameter] != second[parameter])) {
                return false;
            }
        }
        
        return true;
    }

    private  CombinationUtil();

}