28public enum CollectionLogPage {
36 private final int button;
41 this.category = category;
44 private static HashMap<Integer, CollectionLogPage> pages;
46 public static CollectionLogPage forButton(
int button) {
47 return pages.get(button);
51 pages =
new HashMap<>();
52 for (CollectionLogPage page : values()) {
53 pages.put(page.getButton(), page);
58 public int getButton() {