aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csie...@apache.org
Subject svn commit: r1808317 - /aries/trunk/component-dsl/component-dsl/src/main/java/org/apache/aries/osgi/functional/OSGi.java
Date Thu, 14 Sep 2017 07:24:56 GMT
Author: csierra
Date: Thu Sep 14 07:24:55 2017
New Revision: 1808317

URL: http://svn.apache.org/viewvc?rev=1808317&view=rev
Log:
Naive join implementation

Modified:
    aries/trunk/component-dsl/component-dsl/src/main/java/org/apache/aries/osgi/functional/OSGi.java

Modified: aries/trunk/component-dsl/component-dsl/src/main/java/org/apache/aries/osgi/functional/OSGi.java
URL: http://svn.apache.org/viewvc/aries/trunk/component-dsl/component-dsl/src/main/java/org/apache/aries/osgi/functional/OSGi.java?rev=1808317&r1=1808316&r2=1808317&view=diff
==============================================================================
--- aries/trunk/component-dsl/component-dsl/src/main/java/org/apache/aries/osgi/functional/OSGi.java
(original)
+++ aries/trunk/component-dsl/component-dsl/src/main/java/org/apache/aries/osgi/functional/OSGi.java
Thu Sep 14 07:24:55 2017
@@ -98,6 +98,10 @@ public interface OSGi<T> extends OSGiRun
 		return new JustOSGiImpl<>(s);
 	}
 
+	static <S> OSGi<S> join(OSGi<OSGi<S>> program) {
+		return program.flatMap(x -> x);
+	}
+
 	static <S> OSGi<S> nothing() {
 		return new NothingOSGiImpl<>();
 	}



Mime
View raw message