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 information
roots - 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

    Fields
    Modifier and Type
    Field
    Description
    private final int[]
    The field for the formData record component.
    private final char[]
    The field for the lowRoots record component.
    private final short[]
    The field for the meta record component.
    private final int
    The field for the rootLength record component.
    private final char[]
    The field for the roots record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Section(int rootLength, short[] meta, char[] roots, char[] lowRoots, int[] formData)
    Creates an instance of a Section record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    int[]
    Returns the value of the formData record component.
    final int
    Returns a hash code value for this object.
    char[]
    Returns the value of the lowRoots record component.
    short[]
    Returns the value of the meta record component.
    (package private) void
     
    int
    Returns the value of the rootLength record component.
    char[]
    Returns the value of the roots record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • rootLength

      private final int rootLength
      The field for the rootLength record component.
    • meta

      private final short[] meta
      The field for the meta record component.
    • roots

      private final char[] roots
      The field for the roots record component.
    • lowRoots

      private final char[] lowRoots
      The field for the lowRoots record component.
    • formData

      private final int[] formData
      The field for the formData record component.
  • Constructor Details

    • Section

      private Section(int rootLength, short[] meta, char[] roots, char[] lowRoots, int[] formData)
      Creates an instance of a Section record class.
      Parameters:
      rootLength - the value for the rootLength record component
      meta - the value for the meta record component
      roots - the value for the roots record component
      lowRoots - the value for the lowRoots record component
      formData - the value for the formData record component
  • Method Details

    • processWords

      void processWords(Consumer<FlyweightEntry> processor)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rootLength

      public int rootLength()
      Returns the value of the rootLength record component.
      Returns:
      the value of the rootLength record component
    • meta

      public short[] meta()
      Returns the value of the meta record component.
      Returns:
      the value of the meta record component
    • roots

      public char[] roots()
      Returns the value of the roots record component.
      Returns:
      the value of the roots record component
    • lowRoots

      public char[] lowRoots()
      Returns the value of the lowRoots record component.
      Returns:
      the value of the lowRoots record component
    • formData

      public int[] formData()
      Returns the value of the formData record component.
      Returns:
      the value of the formData record component