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

Method ofInstance

output/java_guava/1.4.13/Suppliers.java:225–227  ·  view source on GitHub ↗

Returns a supplier that always supplies instance.

(@Nullable T instance)

Source from the content-addressed store, hash-verified

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

Callers 1

CacheBuilderClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected