MCPcopy Create free account
hub / github.com/grpc/grpc-java / fromValue

Method fromValue

api/src/main/java/io/grpc/StatusOr.java:36–39  ·  view source on GitHub ↗

Construct from a value.

(T value)

Source from the content-addressed store, hash-verified

34
35 /** Construct from a value. */
36 public static <T> StatusOr<T> fromValue(T value) {
37 StatusOr<T> result = new StatusOr<T>(null, value);
38 return result;
39 }
40
41 /** Construct from a non-Ok status. */
42 public static <T> StatusOr<T> fromStatus(Status status) {

Callers 15

doResolveMethod · 0.95
runMethod · 0.95
updateAddressesMethod · 0.95
startMethod · 0.95
doResolveMethod · 0.95
equals_sameValuesMethod · 0.95
toString_valueMethod · 0.95
toString_nullValueMethod · 0.95

Calls

no outgoing calls

Tested by 15

equals_sameValuesMethod · 0.76
toString_valueMethod · 0.76
toString_nullValueMethod · 0.76
startMethod · 0.76
verify_basic_configMethod · 0.76
verify_config_updateMethod · 0.76