MCPcopy Create free account
hub / github.com/antlr/codebuff / ofInstance

Method ofInstance

output/java_guava/1.4.16/Suppliers.java:223–225  ·  view source on GitHub ↗

Returns a supplier that always supplies instance.

(@Nullable T instance)

Source from the content-addressed store, hash-verified

221
222
223 public static <T> Supplier<T> ofInstance(@Nullable T instance) {
224 return new SupplierOfInstance<T>(instance);
225 }
226
227 private static class SupplierOfInstance<T> implements Supplier<T>, Serializable {
228 final T instance;

Callers 1

CacheBuilderClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected