java.lang.Object
java.lang.Record
com.ensarsarajcic.neovim.java.pluginhost.state.CommandState

public record CommandState(Integer lineStart, Integer lineEnd, Integer range, Integer count, String bang, String mods, String register, String args) extends Record
  • 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 a CommandState record class.
      Parameters:
      lineStart - the value for the lineStart record component
      lineEnd - the value for the lineEnd record component
      range - the value for the range record component
      count - the value for the count record component
      bang - the value for the bang record component
      mods - the value for the mods record component
      register - the value for the register record component
      args - the value for the args record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • lineStart

      public Integer lineStart()
      Returns the value of the lineStart record component.
      Returns:
      the value of the lineStart record component
    • lineEnd

      public Integer lineEnd()
      Returns the value of the lineEnd record component.
      Returns:
      the value of the lineEnd record component
    • range

      public Integer range()
      Returns the value of the range record component.
      Returns:
      the value of the range record component
    • count

      public Integer count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • bang

      public String bang()
      Returns the value of the bang record component.
      Returns:
      the value of the bang record component
    • mods

      public String mods()
      Returns the value of the mods record component.
      Returns:
      the value of the mods record component
    • register

      public String register()
      Returns the value of the register record component.
      Returns:
      the value of the register record component
    • args

      public String args()
      Returns the value of the args record component.
      Returns:
      the value of the args record component