Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
Similar to java.util.function.Supplier.
  • Loading branch information
garydgregory committed Sep 20, 2022
1 parent 7624596 commit d17a948
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}

0 comments on commit d17a948

Please sign in to comment.