static int convertInterfaceValue(int index) { if (index >= 0 && index <= 8) { return index - 1; } return -1; }