MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Lazy

Method Lazy

java/src/org/openqa/selenium/concurrent/Lazy.java:31–33  ·  view source on GitHub ↗
(Supplier<T> supplier)

Source from the content-addressed store, hash-verified

29 private final Supplier<T> supplier;
30
31 private Lazy(Supplier<T> supplier) {
32 this.supplier = supplier;
33 }
34
35 public Optional<T> getIfInitialized() {
36 return value == null ? Optional.empty() : Optional.ofNullable(value);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected