override fun equals()

in vim-engine/src/main/kotlin/com/maddyhome/idea/vim/command/CommandBuilder.kt [393:410]


  override fun equals(other: Any?): Boolean {
    if (this === other) return true
    if (javaClass != other?.javaClass) return false

    other as CommandBuilder

    if (keyStrokeTrie != other.keyStrokeTrie) return false
    if (counts != other.counts) return false
    if (selectedRegister != other.selectedRegister) return false
    if (action != other.action) return false
    if (argument != other.argument) return false
    if (typedKeyStrokes != other.typedKeyStrokes) return false
    if (commandState != other.commandState) return false
    if (expectedArgumentType != other.expectedArgumentType) return false
    if (fallbackArgumentType != other.fallbackArgumentType) return false

    return true
  }