@Test public void testCombineProjectsAndParams() { final Project project = ProjectFactory.project(); final DiscoveryParams discoveryParams = DiscoveryParams.builder().build(); assertEquals(ProjectUtils.combineProjectsAndParams(Collections.singletonList(project), discoveryParams), Collections.singletonList(Pair.create(project, discoveryParams))); }
public static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params) { final ArrayList<Pair<Project, DiscoveryParams>> projectAndParams = new ArrayList<>(projects.size()); for (int i = 0; i < projects.size(); i++) { projectAndParams.add(Pair.create(projects.get(i), params)); } return projectAndParams; }
ProjectUtils { public static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params) { final ArrayList<Pair<Project, DiscoveryParams>> projectAndParams = new ArrayList<>(projects.size()); for (int i = 0; i < projects.size(); i++) { projectAndParams.add(Pair.create(projects.get(i), params)); } return projectAndParams; } }
ProjectUtils { public static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params) { final ArrayList<Pair<Project, DiscoveryParams>> projectAndParams = new ArrayList<>(projects.size()); for (int i = 0; i < projects.size(); i++) { projectAndParams.add(Pair.create(projects.get(i), params)); } return projectAndParams; } private  ProjectUtils(); }
ProjectUtils { public static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params) { final ArrayList<Pair<Project, DiscoveryParams>> projectAndParams = new ArrayList<>(projects.size()); for (int i = 0; i < projects.size(); i++) { projectAndParams.add(Pair.create(projects.get(i), params)); } return projectAndParams; } private  ProjectUtils(); static boolean acceptedCardType(final @NonNull CreditCardTypes type, final @NonNull Project project); static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params); static @NonNull String deadlineCountdown(final @NonNull Project project, final @NonNull Context context); static @NonNull String deadlineCountdownDetail(final @NonNull Project project, final @NonNull Context context,
    final @NonNull KSString ksString); static @NonNull String deadlineCountdownUnit(final @NonNull Project project, final @NonNull Context context); static int deadlineCountdownValue(final @NonNull Project project); static boolean isCompleted(final @NonNull Project project); static boolean isProjectNamePunctuated(final @NonNull String name); static @Nullable Metadata metadataForProject(final @NonNull Project project); static int photoHeightFromWidthRatio(final int width); static @NonNull Long timeInSecondsOfDuration(final @NonNull Project project); static @NonNull Long timeInSecondsUntilDeadline(final @NonNull Project project); static boolean userIsCreator(final @NonNull Project project, final @Nullable User user); static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry); }
ProjectUtils { public static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params) { final ArrayList<Pair<Project, DiscoveryParams>> projectAndParams = new ArrayList<>(projects.size()); for (int i = 0; i < projects.size(); i++) { projectAndParams.add(Pair.create(projects.get(i), params)); } return projectAndParams; } private  ProjectUtils(); static boolean acceptedCardType(final @NonNull CreditCardTypes type, final @NonNull Project project); static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params); static @NonNull String deadlineCountdown(final @NonNull Project project, final @NonNull Context context); static @NonNull String deadlineCountdownDetail(final @NonNull Project project, final @NonNull Context context,
    final @NonNull KSString ksString); static @NonNull String deadlineCountdownUnit(final @NonNull Project project, final @NonNull Context context); static int deadlineCountdownValue(final @NonNull Project project); static boolean isCompleted(final @NonNull Project project); static boolean isProjectNamePunctuated(final @NonNull String name); static @Nullable Metadata metadataForProject(final @NonNull Project project); static int photoHeightFromWidthRatio(final int width); static @NonNull Long timeInSecondsOfDuration(final @NonNull Project project); static @NonNull Long timeInSecondsUntilDeadline(final @NonNull Project project); static boolean userIsCreator(final @NonNull Project project, final @Nullable User user); static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry);  }