/** * @param fileType Filetype to query for. * @return True if BSA contains files of that type. */ public boolean contains(FileType fileType) { if (!fileFlags.isZeros()) { return fileFlags.get(fileType.ordinal()); } else { return manualContains(fileType); } }
/** * @param fileTypes Filetypes to query for. * @return True if BSA contains any of the filetypes. */ public boolean containsAny(FileType[] fileTypes) { if (!fileFlags.isZeros()) { for (FileType f : fileTypes) { if (contains(f)) { return true; } } return false; } else { return manualContains(fileTypes); } }