Record Class CommandState
java.lang.Object
java.lang.Record
com.ensarsarajcic.neovim.java.pluginhost.state.CommandState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()
Returns the value of theargs
record component.bang()
Returns the value of thebang
record component.count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.lineEnd()
Returns the value of thelineEnd
record component.Returns the value of thelineStart
record component.mods()
Returns the value of themods
record component.range()
Returns the value of therange
record component.register()
Returns the value of theregister
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CommandState
public CommandState(Integer lineStart, Integer lineEnd, Integer range, Integer count, String bang, String mods, String register, String args) Creates an instance of aCommandState
record class.- Parameters:
lineStart
- the value for thelineStart
record componentlineEnd
- the value for thelineEnd
record componentrange
- the value for therange
record componentcount
- the value for thecount
record componentbang
- the value for thebang
record componentmods
- the value for themods
record componentregister
- the value for theregister
record componentargs
- the value for theargs
record component
-
-
Method Details
-
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)
. -
lineStart
Returns the value of thelineStart
record component.- Returns:
- the value of the
lineStart
record component
-
lineEnd
Returns the value of thelineEnd
record component.- Returns:
- the value of the
lineEnd
record component
-
range
Returns the value of therange
record component.- Returns:
- the value of the
range
record component
-
count
Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
bang
Returns the value of thebang
record component.- Returns:
- the value of the
bang
record component
-
mods
Returns the value of themods
record component.- Returns:
- the value of the
mods
record component
-
register
Returns the value of theregister
record component.- Returns:
- the value of the
register
record component
-
args
Returns the value of theargs
record component.- Returns:
- the value of the
args
record component
-