Example usage for com.google.common.base Functions forSupplier

List of usage examples for com.google.common.base Functions forSupplier

Introduction

In this page you can find the example usage for com.google.common.base Functions forSupplier.

Prototype

@Beta
public static <T> Function<Object, T> forSupplier(Supplier<T> supplier) 

Source Link

Document

Returns a function that always returns the result of invoking Supplier#get on supplier , regardless of its input.

Usage

From source file:org.hobsoft.entangle.guava.GuavaConverters.java

public static <T> Converter<Object, T> forSupplier(Supplier<? extends T> supplier) {
    return forFunction(Functions.forSupplier(supplier));
}