Record Class IdAShellTerminalHolder
java.lang.Object
java.lang.Record
com.io7m.idstore.shell.admin.internal.IdAShellTerminalHolder
- Record Components:
terminal
- The terminal
- All Implemented Interfaces:
com.io7m.repetoir.core.RPServiceType
public record IdAShellTerminalHolder(org.jline.terminal.Terminal terminal)
extends Record
implements com.io7m.repetoir.core.RPServiceType
A terminal holder.
-
Constructor Summary
ConstructorDescriptionIdAShellTerminalHolder
(org.jline.terminal.Terminal terminal) Creates an instance of aIdAShellTerminalHolder
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.jline.terminal.Terminal
terminal()
Returns the value of theterminal
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
IdAShellTerminalHolder
public IdAShellTerminalHolder(org.jline.terminal.Terminal terminal) Creates an instance of aIdAShellTerminalHolder
record class.- Parameters:
terminal
- the value for theterminal
record component
-
-
Method Details
-
description
- Specified by:
description
in interfacecom.io7m.repetoir.core.RPServiceType
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
terminal
public org.jline.terminal.Terminal terminal()Returns the value of theterminal
record component.- Returns:
- the value of the
terminal
record component
-