Record Class CommandBindings.Binding
java.lang.Object
java.lang.Record
com.ultikits.ultitools.command.engine.CommandBindings.Binding
- Enclosing class:
CommandBindings
static record CommandBindings.Binding(Object owner, String ownerName, Object instance, CompiledCommand command, FrameworkReplies replies)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CompiledCommandThe field for thecommandrecord component.private final ObjectThe field for theinstancerecord component.private final ObjectThe field for theownerrecord component.private final StringThe field for theownerNamerecord component.private final FrameworkRepliesThe field for therepliesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBinding(Object owner, String ownerName, Object instance, CompiledCommand command, FrameworkReplies replies) Creates an instance of aBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instance()Returns the value of theinstancerecord component.owner()Returns the value of theownerrecord component.Returns the value of theownerNamerecord component.replies()Returns the value of therepliesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
owner
The field for theownerrecord component. -
ownerName
The field for theownerNamerecord component. -
instance
The field for theinstancerecord component. -
command
The field for thecommandrecord component. -
replies
The field for therepliesrecord component.
-
-
Constructor Details
-
Binding
Binding(Object owner, String ownerName, Object instance, CompiledCommand command, FrameworkReplies replies) Creates an instance of aBindingrecord class.- Parameters:
owner- the value for theownerrecord componentownerName- the value for theownerNamerecord componentinstance- the value for theinstancerecord componentcommand- the value for thecommandrecord componentreplies- the value for therepliesrecord component
-
-
Method Details
-
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
ownerName
Returns the value of theownerNamerecord component.- Returns:
- the value of the
ownerNamerecord component
-
instance
Returns the value of theinstancerecord component.- Returns:
- the value of the
instancerecord component
-
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
replies
Returns the value of therepliesrecord component.- Returns:
- the value of the
repliesrecord component
-