| | |
| | | /** |
| | | * 在 actionList 中找到第一个指定 actionType 的下标 |
| | | */ |
| | | private int findFirstActionIndex(List<Action> actionList, long actionType) { |
| | | public int findFirstActionIndex(List<Action> actionList, long actionType) { |
| | | for (int i = 0; i < actionList.size(); i++) { |
| | | if (actionList.get(i).getActionType().equals(actionType)) { |
| | | return i; |
| | |
| | | /** |
| | | * 在 actionList 中找到最后一个指定 actionType 的下标 |
| | | */ |
| | | private int findLastActionIndex(List<Action> actionList, long actionType) { |
| | | public int findLastActionIndex(List<Action> actionList, long actionType) { |
| | | int index = -1; |
| | | for (int i = 0; i < actionList.size(); i++) { |
| | | if (actionList.get(i).getActionType().equals(actionType)) { |