Record Class HunspellDictionary.UnsupportedDirective
java.lang.Object
java.lang.Record
opennlp.tools.stemmer.hunspell.HunspellDictionary.UnsupportedDirective
- Record Components:
directive- The directive name.source- The affix file path, oraffix streamfor stream loading.lineNumber- The one-based source line number.
- Enclosing class:
HunspellDictionary
-
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedDirective(String directive, String source, int lineNumber) Creates a diagnostic with a directive name and source location. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineNumberrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnsupportedDirective
Creates a diagnostic with a directive name and source location.- Parameters:
directive- The nonblank directive name.source- The nonblank source description.lineNumber- The positive source line number.- Throws:
IllegalArgumentException- Thrown if a name is null or blank, or the line number is not positive.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
directive
-
source
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-