Record Class Invocation.Script
java.lang.Object
java.lang.Record
org.aksw.shellgebra.exec.invocation.Invocation.Script
- All Implemented Interfaces:
Invocation
- Enclosing interface:
Invocation
public static record Invocation.Script(String content, String mediaType)
extends Record
implements Invocation
-
Nested Class Summary
Nested classes/interfaces inherited from interface Invocation
Invocation.Argv, Invocation.Script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasScript()content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisScript()Returns the value of themediaTyperecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface Invocation
asArgv, isArgv
-
Constructor Details
-
Script
-
-
Method Details
-
isScript
public boolean isScript()- Specified by:
isScriptin interfaceInvocation
-
asScript
- Specified by:
asScriptin interfaceInvocation
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
mediaType
Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord component
-