You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by dj...@apache.org on 2016/03/07 19:26:35 UTC
[25/50] incubator-quarks git commit: Rename source function
Rename source function
Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/c9a7bbb0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/c9a7bbb0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/c9a7bbb0
Branch: refs/heads/master
Commit: c9a7bbb0c4dfe74a6bf5cf51cf2652b32ee8ea60
Parents: 9a5a3e1
Author: Daniel J. Debrunner <de...@us.ibm.com>
Authored: Tue Mar 1 08:25:44 2016 -0800
Committer: Daniel J. Debrunner <de...@us.ibm.com>
Committed: Sun Mar 6 08:30:32 2016 -0800
----------------------------------------------------------------------
.../src/main/java/quarks/connectors/serial/SerialDevice.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/c9a7bbb0/connectors/serial/src/main/java/quarks/connectors/serial/SerialDevice.java
----------------------------------------------------------------------
diff --git a/connectors/serial/src/main/java/quarks/connectors/serial/SerialDevice.java b/connectors/serial/src/main/java/quarks/connectors/serial/SerialDevice.java
index 399378e..919e622 100644
--- a/connectors/serial/src/main/java/quarks/connectors/serial/SerialDevice.java
+++ b/connectors/serial/src/main/java/quarks/connectors/serial/SerialDevice.java
@@ -41,12 +41,14 @@ public interface SerialDevice extends TopologyElement {
void setInitializer(Consumer<SerialPort> initializer);
/**
- * Create a supplier function that can be used to source a
+ * Create a function that can be used to source a
* stream from a serial port device.
* <BR>
* Calling {@code get()} on the returned function will result in a call
* to {@code driver.apply(serialPort)}
* passing a runtime {@link SerialPort} for this serial device.
+ * The value returned by {@code driver.apply(serialPort)} is
+ * returned by this returned function.
* <BR>
* The function {@code driver} typically sends instructions to the
* serial port using {@link SerialPort#getOutput()} and then
@@ -62,5 +64,5 @@ public interface SerialDevice extends TopologyElement {
*
* @see quarks.topology.Topology#poll(Supplier, long, TimeUnit)
*/
- public <T> Supplier<T> getSupplier(Function<SerialPort,T> driver);
+ public <T> Supplier<T> getSource(Function<SerialPort,T> driver);
}