Record Class LuaCode
java.lang.Object
java.lang.Record
org.infinispan.server.resp.scripting.LuaCode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.longflags()Returns the value of theflagsrecord component.static LuaCodefromScript(String script, org.infinispan.scripting.impl.ScriptMetadata metadata) final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.sha()Returns the value of thesharecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LuaCode
Creates an instance of aLuaCoderecord class.- Parameters:
name- the value for thenamerecord componentcode- the value for thecoderecord componentsha- the value for thesharecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
fromScript
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
sha
Returns the value of thesharecord component.- Returns:
- the value of the
sharecord component
-
flags
public long flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-