Home | History | Annotate | Download | only in base

Lines Matching defs:supplier

311    * Returns a function that always returns the result of invoking {@link Supplier#get} on {@code
312 * supplier}, regardless of its input.
317 public static <T> Function<Object, T> forSupplier(Supplier<T> supplier) {
318 return new SupplierFunction<T>(supplier);
324 private final Supplier<T> supplier;
326 private SupplierFunction(Supplier<T> supplier) {
327 this.supplier = checkNotNull(supplier);
331 return supplier.get();
337 return this.supplier.equals(that.supplier);
343 return supplier.hashCode();
347 return "forSupplier(" + supplier + ")";