public boolean SetMatchFinder(int matchFinderIndex)
    {
        if (matchFinderIndex < 0 || matchFinderIndex > 2)
        {
            return false;
        }
        final int matchFinderIndexPrev = _matchFinderType;
        _matchFinderType = matchFinderIndex;
        if (_matchFinder != null && matchFinderIndexPrev != _matchFinderType)
        {
            _dictionarySizePrev = -1;
            _matchFinder = null;
        }
        return true;
    }