Record Class ExecutableInvocationSimple
java.lang.Object
java.lang.Record
org.aksw.shellgebra.exec.invocation.ExecutableInvocationSimple
- All Implemented Interfaces:
AutoCloseable, ExecutableInvocation
public record ExecutableInvocationSimple(List<String> argv, AutoCloseable resources)
extends Record
implements ExecutableInvocation
-
Constructor Summary
ConstructorsConstructorDescriptionExecutableInvocationSimple(List<String> argv) ExecutableInvocationSimple(List<String> argv, AutoCloseable resources) Creates an instance of aExecutableInvocationSimplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionargv()Returns the value of theargvrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExecutableInvocationSimple
-
ExecutableInvocationSimple
Creates an instance of aExecutableInvocationSimplerecord class.- Parameters:
argv- the value for theargvrecord componentresources- the value for theresourcesrecord component
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
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). -
argv
Returns the value of theargvrecord component.- Specified by:
argvin interfaceExecutableInvocation- Returns:
- the value of the
argvrecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-