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 theformData
record component.private final char[]
The field for thelowRoots
record component.private final short[]
The field for themeta
record component.private final int
The field for therootLength
record component.private final char[]
The field for theroots
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Section
(int rootLength, short[] meta, char[] roots, char[] lowRoots, int[] formData) Creates an instance of aSection
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int[]
formData()
Returns the value of theformData
record component.final int
hashCode()
Returns a hash code value for this object.char[]
lowRoots()
Returns the value of thelowRoots
record component.short[]
meta()
Returns the value of themeta
record component.(package private) void
processWords
(Consumer<FlyweightEntry> processor) int
Returns the value of therootLength
record component.char[]
roots()
Returns the value of theroots
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
rootLength
private final int rootLengthThe field for therootLength
record component. -
meta
private final short[] metaThe field for themeta
record component. -
roots
private final char[] rootsThe field for theroots
record component. -
lowRoots
private final char[] lowRootsThe field for thelowRoots
record component. -
formData
private final int[] formDataThe field for theformData
record component.
-
-
Constructor Details
-
Section
private Section(int rootLength, short[] meta, char[] roots, char[] lowRoots, int[] formData) Creates an instance of aSection
record 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 therootLength
record component.- Returns:
- the value of the
rootLength
record component
-
meta
public short[] meta()Returns the value of themeta
record component.- Returns:
- the value of the
meta
record component
-
roots
public char[] roots()Returns the value of theroots
record component.- Returns:
- the value of the
roots
record component
-
lowRoots
public char[] lowRoots()Returns the value of thelowRoots
record component.- Returns:
- the value of the
lowRoots
record component
-
formData
public int[] formData()Returns the value of theformData
record component.- Returns:
- the value of the
formData
record component
-