Package org.codelibs.fess.dict.stopwords
Class StopwordsItem
java.lang.Object
org.codelibs.fess.dict.DictionaryItem
org.codelibs.fess.dict.stopwords.StopwordsItem
Represents an item in a stopwords dictionary.
This class stores a stopword and tracks its updated value.
-
Field Summary
Fields inherited from class org.codelibs.fess.dict.DictionaryItem
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetInput()Gets the original stopword.Gets the value of the stopword.Gets the new stopword.inthashCode()booleanChecks if the item has been marked for deletion.booleanChecks if the item has been updated.voidsetNewInput(String newInput) Sets the new stopword.Converts the item to a string representation for writing to a file.toString()Methods inherited from class org.codelibs.fess.dict.DictionaryItem
getId
-
Constructor Details
-
StopwordsItem
Constructs a new stopword item.- Parameters:
id- The unique identifier of the item.input- The stopword.
-
-
Method Details
-
getNewInput
Gets the new stopword.- Returns:
- The new stopword.
-
setNewInput
Sets the new stopword.- Parameters:
newInput- The new stopword.
-
getInput
Gets the original stopword.- Returns:
- The original stopword.
-
getInputValue
Gets the value of the stopword.- Returns:
- The stopword value, or an empty string if null.
-
isUpdated
public boolean isUpdated()Checks if the item has been updated.- Returns:
- true if the item has been updated, false otherwise.
-
isDeleted
public boolean isDeleted()Checks if the item has been marked for deletion.- Returns:
- true if the item is marked for deletion, false otherwise.
-
hashCode
public int hashCode() -
equals
-
toString
-
toLineString
Converts the item to a string representation for writing to a file.- Returns:
- The stopword as a string.
-