Fargus811 / Competition

0 stars 0 forks source link

Improve Command Interface #27

Open dorohovichandrey opened 4 years ago

dorohovichandrey commented 4 years ago
public interface Command {

    String getInstruction();

    int getParamsNumber();

    String[] getParamInstruction(); // Better use List instead of array, and rename to getParamInstructions

    CommandResult process(List<String> params);
}
Fargus811 commented 4 years ago

Why better use List, not array?