@Test public void testShouldIncludeFeatured() { final Category nonRootCategory = CategoryFactory.bluesCategory(); final DiscoveryParams nonRootParams = DiscoveryParams.builder().category(nonRootCategory).build(); assertEquals(false, nonRootParams.shouldIncludeFeatured()); final Category rootCategory = CategoryFactory.gamesCategory(); final DiscoveryParams rootParams = DiscoveryParams.builder().category(rootCategory).build(); assertEquals(true, rootParams.shouldIncludeFeatured()); }
public boolean shouldIncludeFeatured() { return category() != null && category().parent() == null && page() != null && page() == 1 && (sort() == null || sort() == Sort.MAGIC); }
DiscoveryParams implements Parcelable { public boolean shouldIncludeFeatured() { return category() != null && category().parent() == null && page() != null && page() == 1 && (sort() == null || sort() == Sort.MAGIC); } }
DiscoveryParams implements Parcelable { public boolean shouldIncludeFeatured() { return category() != null && category().parent() == null && page() != null && page() == 1 && (sort() == null || sort() == Sort.MAGIC); }  }
DiscoveryParams implements Parcelable { public boolean shouldIncludeFeatured() { return category() != null && category().parent() == null && page() != null && page() == 1 && (sort() == null || sort() == Sort.MAGIC); }  abstract @Nullable Integer backed(); abstract @Nullable Category category(); abstract @Nullable String categoryParam(); abstract @Nullable Location location(); abstract @Nullable String locationParam(); abstract @Nullable Integer page(); abstract @Nullable Integer perPage(); abstract @Nullable Integer pledged(); abstract @Nullable Boolean staffPicks(); abstract @Nullable Integer starred(); abstract @Nullable Integer social(); abstract @Nullable Sort sort(); abstract @Nullable Boolean recommended(); abstract @Nullable Project similarTo(); abstract @Nullable State state(); abstract @Nullable Integer tagId(); abstract @Nullable String term(); static @NonNull DiscoveryParams fromUri(final @NonNull Uri uri); static @NonNull Builder builder(); abstract Builder toBuilder(); @NonNull DiscoveryParams nextPage(); @NonNull Map<String, String> queryParams(); boolean shouldIncludeFeatured(); @Override @NonNull String toString(); @NonNull String filterString(final @NonNull Context context, final @NonNull KSString ksString); @NonNull String filterString(final @NonNull Context context, final @NonNull KSString ksString,
    final boolean isToolbar, final boolean isParentFilter); static DiscoveryParams getDefaultParams(final @Nullable User user); boolean isAllProjects(); boolean isSavedProjects(); boolean isCategorySet(); }
DiscoveryParams implements Parcelable { public boolean shouldIncludeFeatured() { return category() != null && category().parent() == null && page() != null && page() == 1 && (sort() == null || sort() == Sort.MAGIC); }  abstract @Nullable Integer backed(); abstract @Nullable Category category(); abstract @Nullable String categoryParam(); abstract @Nullable Location location(); abstract @Nullable String locationParam(); abstract @Nullable Integer page(); abstract @Nullable Integer perPage(); abstract @Nullable Integer pledged(); abstract @Nullable Boolean staffPicks(); abstract @Nullable Integer starred(); abstract @Nullable Integer social(); abstract @Nullable Sort sort(); abstract @Nullable Boolean recommended(); abstract @Nullable Project similarTo(); abstract @Nullable State state(); abstract @Nullable Integer tagId(); abstract @Nullable String term(); static @NonNull DiscoveryParams fromUri(final @NonNull Uri uri); static @NonNull Builder builder(); abstract Builder toBuilder(); @NonNull DiscoveryParams nextPage(); @NonNull Map<String, String> queryParams(); boolean shouldIncludeFeatured(); @Override @NonNull String toString(); @NonNull String filterString(final @NonNull Context context, final @NonNull KSString ksString); @NonNull String filterString(final @NonNull Context context, final @NonNull KSString ksString,
    final boolean isToolbar, final boolean isParentFilter); static DiscoveryParams getDefaultParams(final @Nullable User user); boolean isAllProjects(); boolean isSavedProjects(); boolean isCategorySet();  }