File tree Expand file tree Collapse file tree
src/main/java/io/github/dgroup/enumerable4j Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,9 +188,8 @@ public interface Enumerable<X> extends Collection<X> {
188188 }
189189
190190 /**
191- * Returns an enumerable containing the next element of enumerable
192- * after the first one which corresponds the condition.
193- * If no predicate (null) is given, or no element found then null is returned instead.
191+ * Returns the next element of enumerable after the first one which corresponds the condition.
192+ * If no predicate (null) is given, or no element found then alternative is returned instead.
194193 * @param prd The function to match element after which enumerable element should be returned.
195194 * @return The next element of enumerable after the first one which corresponds the condition.
196195 */
@@ -199,11 +198,10 @@ public interface Enumerable<X> extends Collection<X> {
199198 }
200199
201200 /**
202- * Returns an enumerable containing the next element of enumerable
203- * after the first one which corresponds the condition.
201+ * Returns the next element of enumerable after the first one which corresponds the condition.
204202 * If no predicate (null) is given, or no element found then alternative is returned instead.
205203 * @param prd The function to match element after which enumerable element should be returned.
206- * @param alt The alternative to return in case no element found.
204+ * @param alt The alternative to return in case of null predicate or no element found.
207205 * @return The next element of enumerable after the first one which corresponds the condition.
208206 */
209207 default X next (Predicate<X > prd , X alt ) {
Original file line number Diff line number Diff line change @@ -260,8 +260,7 @@ default Enumerable<X> after(Predicate<X> prd, long size) {
260260 }
261261
262262 /**
263- * Returns an enumerable containing the next element of enumerable
264- * after the first one which corresponds the condition.
263+ * Returns the next element of enumerable after the first one which corresponds the condition.
265264 * If no predicate (null) is given, or no element found then null is returned instead.
266265 * @param prd The function to match element after which enumerable element should be returned.
267266 * @return The next element of enumerable after the first one which corresponds the condition.
@@ -271,11 +270,10 @@ default X next(Predicate<X> prd) {
271270 }
272271
273272 /**
274- * Returns an enumerable containing the next element of enumerable
275- * after the first one which corresponds the condition.
273+ * Returns the next element of enumerable after the first one which corresponds the condition.
276274 * If no predicate (null) is given, or no element found then alternative is returned instead.
277275 * @param prd The function to match element after which enumerable element should be returned.
278- * @param alt The alternative to return in case no element found.
276+ * @param alt The alternative to return in case of null predicate or no element found.
279277 * @return The next element of enumerable after the first one which corresponds the condition.
280278 */
281279 default X next (Predicate <X > prd , X alt ) {
You can’t perform that action at this time.
0 commit comments