Record Class LanguageDetectorME.StringCPLengthPair
java.lang.Object
java.lang.Record
opennlp.tools.langdetect.LanguageDetectorME.StringCPLengthPair
- Enclosing class:
LanguageDetectorME
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStringCPLengthPair(String s, int length) Creates an instance of aStringCPLengthPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.(package private) Stringfinal inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.s()Returns the value of thesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
s
The field for thesrecord component. -
length
private final int lengthThe field for thelengthrecord component.
-
-
Constructor Details
-
StringCPLengthPair
Creates an instance of aStringCPLengthPairrecord class.- Parameters:
s- the value for thesrecord componentlength- the value for thelengthrecord component
-
-
Method Details
-
getString
String getString() -
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. -
s
Returns the value of thesrecord component.- Returns:
- the value of the
srecord component
-
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-