// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.query.parser;

import com.yahoo.collections.Tuple2;
import com.yahoo.component.Version;
import com.yahoo.language.Linguistics;
import com.yahoo.language.detect.Detector;
import com.yahoo.language.process.*;
import com.yahoo.language.simple.SimpleLinguistics;

/**
 * @author Simon Thoresen Hult
 */
public class TestLinguistics implements Linguistics {

    public static final Linguistics INSTANCE = new TestLinguistics();
    private final Linguistics linguistics = new SimpleLinguistics();

    private TestLinguistics() {
        // hide
    }

    @Override
    public Stemmer getStemmer() {
        return linguistics.getStemmer();
    }

    @Override
    public com.yahoo.language.process.Tokenizer getTokenizer() {
        return linguistics.getTokenizer();
    }

    @Override
    public Normalizer getNormalizer() {
        return linguistics.getNormalizer();
    }

    @Override
    public Transformer getTransformer() {
        return linguistics.getTransformer();
    }

    @Override
    public Segmenter getSegmenter() {
        return new TestSegmenter();
    }

    @Override
    public Detector getDetector() {
        return linguistics.getDetector();
    }

    @Override
    public GramSplitter getGramSplitter() {
        return linguistics.getGramSplitter();
    }

    @Override
    public CharacterClasses getCharacterClasses() {
        return linguistics.getCharacterClasses();
    }

    @Override
    @Deprecated
    public Tuple2<String, Version> getVersion(Linguistics.Component component) {
        return linguistics.getVersion(component);
    }

}



@@ -1557,176 +1557,8 @@
  %7D%0A%0A
-    @Override%0A    @Deprecated%0A    public Tuple2%3CString, Version%3E getVersion(Linguistics.Component component) %7B%0A        return linguistics.getVersion(component);%0A    %7D%0A%0A
 %7D%0A%0A%0A

Remove deprecated method