Record Class CmdRedirect
java.lang.Object
java.lang.Record
org.aksw.shellgebra.algebra.cmd.op.CmdRedirect
public record CmdRedirect(int fd, CmdRedirect.OpenMode openMode, RedirectTarget target)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCmdRedirect(int fd, CmdRedirect.OpenMode openMode, RedirectTarget target) Creates an instance of aCmdRedirectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static CmdRedirectintfd()Returns the value of thefdrecord component.final inthashCode()Returns a hash code value for this object.static CmdRedirectstatic CmdRedirectopenMode()Returns the value of theopenModerecord component.static CmdRedirecttarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.toString(RedirectTargetVisitor<String> visitor) static StringtoString(CmdStrOps strOps, CmdRedirect redirect)
-
Constructor Details
-
CmdRedirect
Creates an instance of aCmdRedirectrecord class.- Parameters:
fd- the value for thefdrecord componentopenMode- the value for theopenModerecord componenttarget- the value for thetargetrecord component
-
-
Method Details
-
in
-
in
-
out
-
err
-
toString
-
toString
-
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. -
fd
public int fd()Returns the value of thefdrecord component.- Returns:
- the value of the
fdrecord component
-
openMode
Returns the value of theopenModerecord component.- Returns:
- the value of the
openModerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-