@Test public void testAll() { assertThrows(VocabHunterException.class, () -> FileFormatTypeTool.getMode(FileFormatType.ALL)); }
public static FilterFileMode getMode(final FileFormatType type) { FilterFileMode mode = MAP.get(type); if (mode == null) { throw new VocabHunterException("Unsupported type " + type); } else { return mode; } }
FileFormatTypeTool { public static FilterFileMode getMode(final FileFormatType type) { FilterFileMode mode = MAP.get(type); if (mode == null) { throw new VocabHunterException("Unsupported type " + type); } else { return mode; } } }
FileFormatTypeTool { public static FilterFileMode getMode(final FileFormatType type) { FilterFileMode mode = MAP.get(type); if (mode == null) { throw new VocabHunterException("Unsupported type " + type); } else { return mode; } } private  FileFormatTypeTool(); }
FileFormatTypeTool { public static FilterFileMode getMode(final FileFormatType type) { FilterFileMode mode = MAP.get(type); if (mode == null) { throw new VocabHunterException("Unsupported type " + type); } else { return mode; } } private  FileFormatTypeTool(); static FilterFileMode getMode(final FileFormatType type); }
FileFormatTypeTool { public static FilterFileMode getMode(final FileFormatType type) { FilterFileMode mode = MAP.get(type); if (mode == null) { throw new VocabHunterException("Unsupported type " + type); } else { return mode; } } private  FileFormatTypeTool(); static FilterFileMode getMode(final FileFormatType type);  }