Record Class SuggestibleEntryCache.Section
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.hunspell.SuggestibleEntryCache.Section
- Record Components:
meta- The lengths of the entry sub-arrays in formData plus the case informationroots- original roots if they're not all-lowercase
- Enclosing class:
SuggestibleEntryCache
private static record SuggestibleEntryCache.Section(int rootLength, short[] meta, char[] roots, char[] lowRoots, int[] formData)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]The field for theformDatarecord component.private final char[]The field for thelowRootsrecord component.private final short[]The field for themetarecord component.private final intThe field for therootLengthrecord component.private final char[]The field for therootsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSection(int rootLength, short[] meta, char[] roots, char[] lowRoots, int[] formData) Creates an instance of aSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.int[]formData()Returns the value of theformDatarecord component.final inthashCode()Returns a hash code value for this object.char[]lowRoots()Returns the value of thelowRootsrecord component.short[]meta()Returns the value of themetarecord component.(package private) voidprocessWords(Consumer<FlyweightEntry> processor) intReturns the value of therootLengthrecord component.char[]roots()Returns the value of therootsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
rootLength
private final int rootLengthThe field for therootLengthrecord component. -
meta
private final short[] metaThe field for themetarecord component. -
roots
private final char[] rootsThe field for therootsrecord component. -
lowRoots
private final char[] lowRootsThe field for thelowRootsrecord component. -
formData
private final int[] formDataThe field for theformDatarecord component.
-
-
Constructor Details
-
Section
private Section(int rootLength, short[] meta, char[] roots, char[] lowRoots, int[] formData) Creates an instance of aSectionrecord class.
-
-
Method Details
-
processWords
-
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 '=='. -
rootLength
public int rootLength()Returns the value of therootLengthrecord component.- Returns:
- the value of the
rootLengthrecord component
-
meta
public short[] meta()Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-
roots
public char[] roots()Returns the value of therootsrecord component.- Returns:
- the value of the
rootsrecord component
-
lowRoots
public char[] lowRoots()Returns the value of thelowRootsrecord component.- Returns:
- the value of the
lowRootsrecord component
-
formData
public int[] formData()Returns the value of theformDatarecord component.- Returns:
- the value of the
formDatarecord component
-