/** * A filter that accepts everything that implements Bible. * * @return the desired filter */ public static BookFilter getOnlyBibles() { return new BookCategoryFilter(BookCategory.BIBLE); }
/** * A filter that accepts everything that implements Bible or Commentary, * when commentaries are listed with Bibles. * * @return the desired filter */ public static BookFilter getBibles() { if (commentariesWithBibles) { return either(new BookCategoryFilter(BookCategory.BIBLE), new BookCategoryFilter(BookCategory.COMMENTARY)); } return new BookCategoryFilter(BookCategory.BIBLE); }
/** * A filter that accepts everything that implements GeneralBook * * @return the desired filter */ public static BookFilter getGeneralBooks() { return new BookCategoryFilter(BookCategory.GENERAL_BOOK); }
/** * A filter that accepts everything that implements Commentary * * @return the desired filter */ public static BookFilter getCommentaries() { return new BookCategoryFilter(BookCategory.COMMENTARY); }
/** * A filter that accepts everything that implements DailyDevotionals * * @return the desired filter */ public static BookFilter getDailyDevotionals() { return new BookCategoryFilter(BookCategory.DAILY_DEVOTIONS); }
/** * A filter that accepts everything that implements Dictionary * * @return the desired filter */ public static BookFilter getGlossaries() { return new BookCategoryFilter(BookCategory.GLOSSARY); }
/** * A filter that accepts everything that implements Dictionary * * @return the desired filter */ public static BookFilter getDictionaries() { return new BookCategoryFilter(BookCategory.DICTIONARY); }
/** * A filter that accepts everything that implements Maps * * @return the desired filter */ public static BookFilter getMaps() { return new BookCategoryFilter(BookCategory.MAPS); }