Record Class LinuxCLibrary.SockFilter
java.lang.Object
java.lang.Record
org.elasticsearch.nativeaccess.lib.LinuxCLibrary.SockFilter
- Record Components:
code- insnjt- number of insn to jump (skip) if truejf- number of insn to jump (skip) if falsek- additional data
- Enclosing interface:
LinuxCLibrary
Corresponds to struct sock_filter
-
Constructor Summary
ConstructorsConstructorDescriptionSockFilter(short code, byte jt, byte jf, int k) Creates an instance of aSockFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionshortcode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.bytejf()Returns the value of thejfrecord component.bytejt()Returns the value of thejtrecord component.intk()Returns the value of thekrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SockFilter
public SockFilter(short code, byte jt, byte jf, int k) Creates an instance of aSockFilterrecord class.
-
-
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. All components in this record class are compared with '=='. -
code
public short code()Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
jt
public byte jt()Returns the value of thejtrecord component.- Returns:
- the value of the
jtrecord component
-
jf
public byte jf()Returns the value of thejfrecord component.- Returns:
- the value of the
jfrecord component
-
k
public int k()Returns the value of thekrecord component.- Returns:
- the value of the
krecord component
-