MCPcopy Create free account
hub / github.com/apache/bval / get

Method get

bval-jsr/src/main/java/org/apache/bval/util/Lazy.java:48–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 @Override
49 public T get() {
50 if (init != null) {
51 synchronized (this) {
52 if (init != null) {
53 value = init.get();
54 init = null;
55 }
56 }
57 }
58 return value;
59 }
60
61 public Optional<T> optional() {
62 return Optional.ofNullable(value);

Callers 15

consumerMethod · 0.95
processMethod · 0.95
processMethod · 0.95
forValueExtractorMethod · 0.95
hierarchyMethod · 0.95
readAttributesMethod · 0.95
getTargetClassMethod · 0.45
createMethod · 0.45
createMethod · 0.45
addBValBeansMethod · 0.45
translateMethod · 0.45
createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected