You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/07/29 06:58:56 UTC
[isis] branch master updated: ISIS-2340: Can: just some java-doc
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new c11e886 ISIS-2340: Can: just some java-doc
c11e886 is described below
commit c11e886d49825658ee2b6019284257d0e82cf474
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Jul 29 08:58:38 2020 +0200
ISIS-2340: Can: just some java-doc
---
.../main/java/org/apache/isis/core/commons/collections/Can.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/core/commons/src/main/java/org/apache/isis/core/commons/collections/Can.java b/core/commons/src/main/java/org/apache/isis/core/commons/collections/Can.java
index 71717ea..d07ec85 100644
--- a/core/commons/src/main/java/org/apache/isis/core/commons/collections/Can.java
+++ b/core/commons/src/main/java/org/apache/isis/core/commons/collections/Can.java
@@ -400,6 +400,14 @@ public interface Can<T> extends Iterable<T>, Serializable {
stream().forEach(action);
}
+ /**
+ * Similar to {@link #forEach(Consumer)}, but zipps in {@code zippedIn} to iterate through
+ * its elements and passes them over as the second argument to the {@code action}.
+ * @param <R>
+ * @param zippedIn must have at least as much elements as this {@code Can}
+ * @param action
+ * @throws NoSuchElementException if {@code zippedIn} overflows
+ */
<R> void zip(Iterable<R> zippedIn, BiConsumer<? super T, ? super R> action);
// -- MANIPULATION