You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2022/09/20 13:40:20 UTC

[httpcomponents-core] branch master updated: Javadoc

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git


The following commit(s) were added to refs/heads/master by this push:
     new d17a948ff Javadoc
d17a948ff is described below

commit d17a948ff7855938dd4cc126c22398e6f48ebe80
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Sep 20 09:40:13 2022 -0400

    Javadoc
    
    Similar to java.util.function.Supplier.
---
 .../src/main/java/org/apache/hc/core5/function/Supplier.java      | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/function/Supplier.java b/httpcore5/src/main/java/org/apache/hc/core5/function/Supplier.java
index 3e0b5f14e..b2df1e50d 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/function/Supplier.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/function/Supplier.java
@@ -28,13 +28,19 @@
 package org.apache.hc.core5.function;
 
 /**
- * Abstract object supplier.
+ * Represents a supplier of results.
  *
+ * @param <T> the type of results supplied by this supplier.
  * @since 5.0
  */
 @FunctionalInterface
 public interface Supplier<T> {
 
+    /**
+     * Gets a result.
+     *
+     * @return a result
+     */
     T get();
 
 }