Package de.f0rce.ace.util
Class AceStaticWordCompleter
java.lang.Object
de.f0rce.ace.util.AceStaticWordCompleter
- All Implemented Interfaces:
IAceWordCompleter
public class AceStaticWordCompleter extends java.lang.Object implements IAceWordCompleter
- Author:
- David "F0rce" Dodlek
-
Constructor Summary
Constructors Constructor Description AceStaticWordCompleter(java.util.List<java.lang.String> words)
AceStaticWordCompleter(java.util.List<java.lang.String> words, boolean keepCompleters)
AceStaticWordCompleter(java.util.List<java.lang.String> words, java.lang.String category)
AceStaticWordCompleter(java.util.List<java.lang.String> words, java.lang.String category, boolean keepCompleters)
-
Method Summary
Modifier and Type Method Description java.lang.String
getCategory()
java.util.List<java.lang.String>
getWords()
boolean
isKeepCompleters()
java.lang.String
toJSON()
Returns a JSON representation of a word completer.
-
Constructor Details
-
AceStaticWordCompleter
public AceStaticWordCompleter(java.util.List<java.lang.String> words)- Parameters:
words
-List
-
AceStaticWordCompleter
public AceStaticWordCompleter(java.util.List<java.lang.String> words, boolean keepCompleters)- Parameters:
words
-List
keepCompleters
- boolean
-
AceStaticWordCompleter
public AceStaticWordCompleter(java.util.List<java.lang.String> words, java.lang.String category)- Parameters:
words
-List
category
-String
-
AceStaticWordCompleter
public AceStaticWordCompleter(java.util.List<java.lang.String> words, java.lang.String category, boolean keepCompleters)- Parameters:
words
-List
category
-String
keepCompleters
- boolean
-
-
Method Details
-
isKeepCompleters
public boolean isKeepCompleters()- Returns:
- boolean
-
getCategory
public java.lang.String getCategory()- Returns:
String
-
getWords
public java.util.List<java.lang.String> getWords()- Returns:
List
-
toJSON
public java.lang.String toJSON()Description copied from interface:IAceWordCompleter
Returns a JSON representation of a word completer.- Specified by:
toJSON
in interfaceIAceWordCompleter
- Returns:
String
-