package uk.gov.register.serialization;

import java.util.List;

public class RegisterCommand {
    private final String commandName;
    private final List<String> arguments;

    public RegisterCommand(String commandName, List<String> arguments) {
        this.commandName = commandName;
        this.arguments = arguments;
    }

    public String getCommandName() {
        return commandName;
    }

    public List<String> getCommandArguments() {
        return arguments;
    }
}

@@ -476,11 +476,512 @@
 s;%0A    %7D
+%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        RegisterCommand that = (RegisterCommand) o;%0A%0A        if (!commandName.equals(that.commandName)) return false;%0A        return arguments.equals(that.arguments);%0A%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int result = commandName.hashCode();%0A        result = 31 * result + arguments.hashCode();%0A        return result;%0A    %7D
 %0A%7D%0A

Make RegisterCommand comparable