Newer
Older
MagnetRON / src / org / ntlab / traceanalyzer / DictionaryImpl.java
Aki Hongo on 3 Mar 2020 469 bytes first commit
package org.ntlab.traceanalyzer;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class DictionaryImpl implements Dictionary {

	private List fWords = new ArrayList(Arrays.asList("osgi", "eclipse", "equinox"));
	private String fLanguage = "en_US";
	
	public String getLanguage() {
		return fLanguage;
	}

	public boolean check(String word) {
		return fWords.contains(word);
	}
	
	public String toString() {
		return fLanguage;
	}

}