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 theargsrecord component.bang()Returns the value of thebangrecord component.count()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lineEnd()Returns the value of thelineEndrecord component.Returns the value of thelineStartrecord component.mods()Returns the value of themodsrecord component.range()Returns the value of therangerecord component.register()Returns the value of theregisterrecord component.final StringtoString()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 aCommandStaterecord class.- Parameters:
lineStart- the value for thelineStartrecord componentlineEnd- the value for thelineEndrecord componentrange- the value for therangerecord componentcount- the value for thecountrecord componentbang- the value for thebangrecord componentmods- the value for themodsrecord componentregister- the value for theregisterrecord componentargs- the value for theargsrecord 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 thelineStartrecord component.- Returns:
- the value of the
lineStartrecord component
-
lineEnd
Returns the value of thelineEndrecord component.- Returns:
- the value of the
lineEndrecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
count
Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
bang
Returns the value of thebangrecord component.- Returns:
- the value of the
bangrecord component
-
mods
Returns the value of themodsrecord component.- Returns:
- the value of the
modsrecord component
-
register
Returns the value of theregisterrecord component.- Returns:
- the value of the
registerrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-