Record Class LinuxCLibrary.SockFilter

java.lang.Object
java.lang.Record
org.elasticsearch.nativeaccess.lib.LinuxCLibrary.SockFilter
Record Components:
code - insn
jt - number of insn to jump (skip) if true
jf - number of insn to jump (skip) if false
k - additional data
Enclosing interface:
LinuxCLibrary

public static record LinuxCLibrary.SockFilter(short code, byte jt, byte jf, int k) extends Record
Corresponds to struct sock_filter
  • Constructor Summary

    Constructors
    Constructor
    Description
    SockFilter(short code, byte jt, byte jf, int k)
    Creates an instance of a SockFilter record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    short
    Returns the value of the code record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    byte
    jf()
    Returns the value of the jf record component.
    byte
    jt()
    Returns the value of the jt record component.
    int
    k()
    Returns the value of the k 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
  • Constructor Details

    • SockFilter

      public SockFilter(short code, byte jt, byte jf, int k)
      Creates an instance of a SockFilter record class.
      Parameters:
      code - the value for the code record component
      jt - the value for the jt record component
      jf - the value for the jf record component
      k - the value for the k record component
  • Method Details

    • 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. All components in this record class 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.
    • code

      public short code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • jt

      public byte jt()
      Returns the value of the jt record component.
      Returns:
      the value of the jt record component
    • jf

      public byte jf()
      Returns the value of the jf record component.
      Returns:
      the value of the jf record component
    • k

      public int k()
      Returns the value of the k record component.
      Returns:
      the value of the k record component