Record Class CmdArgString
java.lang.Object
java.lang.Record
org.aksw.shellgebra.algebra.cmd.arg.CmdArgString
- All Implemented Interfaces:
CmdArg
-
Constructor Summary
ConstructorsConstructorDescriptionCmdArgString(String str) Creates an instance of aCmdArgStringrecord class. -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(CmdArgVisitor<T> visitor) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.str()Returns the value of thestrrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CmdArgString
Creates an instance of aCmdArgStringrecord class.- Parameters:
str- the value for thestrrecord component
-
-
Method Details
-
accept
-
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). -
str
Returns the value of thestrrecord component.- Returns:
- the value of the
strrecord component
-