@@ -52,7 +52,8 @@ public static Permutation<Void> newPermutation(int size) {
5252 /**
5353 * Creates an immutable void permutation.
5454 *
55- * @param size the number of elements to hold.
55+ * @param size the number of elements to hold
56+ * @param kSize the number of elements for display
5657 * @return immutable void permutation
5758 */
5859 public static Permutation <Void > newPermutation (int size , int kSize ) {
@@ -71,7 +72,9 @@ public static Permutation<Void> newPermutation(int size, int kSize) {
7172 /**
7273 * Creates an immutable linked permutation.
7374 *
74- * @param list the value elements
75+ * @param <T> the type
76+ * @param list the value elements
77+ * @param comparator the comparator
7578 * @return immutable basic permutation if no duplicates are detected, an N-Tuple otherwise
7679 * @throws NullPointerException if any of the list items are null
7780 */
@@ -82,8 +85,10 @@ public static <T> Permutation<T> newPermutation(List<T> list, Comparator<T> comp
8285 /**
8386 * Creates an immutable k-permutation.
8487 *
85- * @param list the value elements
86- * @param kSize kSize value
88+ * @param <T> the type
89+ * @param list the value elements
90+ * @param comparator the comparator
91+ * @param kSize kSize value
8792 * @return immutable basic permutation if no duplicates are detected, an N-Tuple otherwise
8893 * @throws NullPointerException if any of the list items are null
8994 */
@@ -125,6 +130,7 @@ public static <T> Permutation<T> newPermutation(List<T> list, Comparator<T> comp
125130 /**
126131 * Creates an immutable linked permutation.
127132 *
133+ * @param <T> the type
128134 * @param list the value elements
129135 * @return immutable basic permutation if no duplicates are detected, an N-Tuple otherwise
130136 * @throws NullPointerException if any of the list items are null
@@ -136,6 +142,7 @@ public static <T> Permutation<T> newPermutation(List<T> list) {
136142 /**
137143 * Creates an immutable linked permutation.
138144 *
145+ * @param <T> the type
139146 * @param list the value elements
140147 * @param kSize kSize value
141148 * @return immutable basic permutation if no duplicates are detected, an N-Tuple otherwise
@@ -180,6 +187,7 @@ public static <T> Permutation<T> newPermutation(List<T> list, int kSize) {
180187 /**
181188 * Creates an immutable linked permutation.
182189 *
190+ * @param <T> the type
183191 * @param list the value elements
184192 * @param withRepetitions flag to specify if duplicates should be ignored
185193 * @return immutable linked permutation
@@ -192,6 +200,7 @@ public static <T> Permutation<T> newPermutation(List<T> list, boolean withRepeti
192200 /**
193201 * Creates an immutable linked permutation.
194202 *
203+ * @param <T> the type
195204 * @param list the value elements
196205 * @param withRepetitions flag to specify if duplicates should be ignored
197206 * @param kSize kSize value
@@ -234,6 +243,7 @@ private static <T> int getGroupInsertIndex(final List<T> list, T item) {
234243 /**
235244 * Creates an empty permutation.
236245 *
246+ * @param <T> the type
237247 * @return an empty permutation
238248 */
239249 static <T > Permutation <T > empty () {
0 commit comments