Package org.egothor.stemmer
Record Class StemmerDictionaryParser.ParseStatistics
java.lang.Object
java.lang.Record
org.egothor.stemmer.StemmerDictionaryParser.ParseStatistics
- Record Components:
sourceDescription- logical source descriptionlineCount- number of physical lines readentryCount- number of logical dictionary entries emittedignoredLineCount- number of ignored empty or remark-only lines
- Enclosing class:
StemmerDictionaryParser
public static record StemmerDictionaryParser.ParseStatistics(String sourceDescription, int lineCount, int entryCount, int ignoredLineCount)
extends Record
Immutable parsing statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionParseStatistics(String sourceDescription, int lineCount, int entryCount, int ignoredLineCount) Creates parsing statistics. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theentryCountrecord 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 theignoredLineCountrecord component.intReturns the value of thelineCountrecord component.Returns the value of thesourceDescriptionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParseStatistics
public ParseStatistics(String sourceDescription, int lineCount, int entryCount, int ignoredLineCount) Creates parsing statistics.- Parameters:
sourceDescription- logical source descriptionlineCount- number of physical lines readentryCount- number of logical dictionary entries emittedignoredLineCount- number of ignored empty or remark-only lines- Throws:
NullPointerException- ifsourceDescriptionisnullIllegalArgumentException- if any numeric value is negative
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
sourceDescription
Returns the value of thesourceDescriptionrecord component.- Returns:
- the value of the
sourceDescriptionrecord component
-
lineCount
public int lineCount()Returns the value of thelineCountrecord component.- Returns:
- the value of the
lineCountrecord component
-
entryCount
public int entryCount()Returns the value of theentryCountrecord component.- Returns:
- the value of the
entryCountrecord component
-
ignoredLineCount
public int ignoredLineCount()Returns the value of theignoredLineCountrecord component.- Returns:
- the value of the
ignoredLineCountrecord component
-