Record Class LuaCode

java.lang.Object
java.lang.Record
org.infinispan.server.resp.scripting.LuaCode

public record LuaCode(String name, String code, String sha, long flags) extends Record
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    LuaCode(String name, String code, String sha, long flags)
    Creates an instance of a LuaCode record class.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Returns the value of the code record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the flags record component.
    static LuaCode
    fromScript(String script, org.infinispan.scripting.impl.ScriptMetadata metadata)
     
    final int
    Returns a hash code value for this object.
    Returns the value of the name record component.
    sha()
    Returns the value of the sha record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details Link icon

    • LuaCode Link icon

      public LuaCode(String name, String code, String sha, long flags)
      Creates an instance of a LuaCode record class.
      Parameters:
      name - the value for the name record component
      code - the value for the code record component
      sha - the value for the sha record component
      flags - the value for the flags record component
  • Method Details Link icon

    • fromScript Link icon

      public static LuaCode fromScript(String script, org.infinispan.scripting.impl.ScriptMetadata metadata)
    • toString Link icon

      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 Link icon

      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 Link icon

      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 the compare method from their corresponding wrapper classes.
      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.
    • name Link icon

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • code Link icon

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • sha Link icon

      public String sha()
      Returns the value of the sha record component.
      Returns:
      the value of the sha record component
    • flags Link icon

      public long flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component