From 01cb9f504c860bc1c037a44f3a76bf342a293d46 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 22 Mar 2016 12:28:35 -0400 Subject: General formatting cleanup and documentation update --- BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils') diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java b/BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java index 1bc9a97..fc1894e 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/ListUtils.java @@ -71,6 +71,9 @@ public class ListUtils { * Partition a list into a list of lists, where each element can count * for more than one element in a partition * + * @param + * The type of elements in the list to partition + * * @param list * The list to partition * @param eleCount @@ -90,8 +93,8 @@ public class ListUtils { /* * List that holds current partition */ - GenHolder> currPart = new GenHolder<>( - new FunctionalList<>()); + GenHolder> currPart = + new GenHolder<>(new FunctionalList<>()); /* * List that holds elements rejected during current pass */ @@ -107,7 +110,7 @@ public class ListUtils { */ for (int nIterations = 0; nIterations < MAX_NTRIESPART && !rejects.isEmpty(); nIterations++) { - list.forEach(new GroupPartIteration(ret, currPart, rejects, + list.forEach(new GroupPartIteration<>(ret, currPart, rejects, numInCurrPart, nPerPart, eleCount)); if (rejects.isEmpty()) { -- cgit v1.2.3